32,199 Topics
| |
I was wondering if anyone would tell me what I am doing wrong because I'm really stuck and getting really sad :sad: goal: copy contents of oldZipFile.zip and create a newZip.zip with contents of old zip file. Problem: If oldZipFile.zip just contains .txt files, it works. But if it contains … | |
Hey, Currently I am doing an assignment building an enterprise web application. One of the specification states that I need to make a calendar view of a booking system in JSP. Is there a library out there that help me doing this? Calendar view here is a page that represents … | |
Hi guys/Girls.. i have been trying this question for the past 3 weeks using java SE... i tried very hard but could get the output... do try to help me out... [B]Question[/B]: [I][COLOR="Red"]Write a program for a bag of strings, where the strings are stored in binary search tree. In … | |
I encountered some code at work that got me thinking. There was a util - class that had some methods that had nothing to do with the state of the class. They were all "util" methods. Meaning that they could all be declared static with [U]no[/U] problem because the only … | |
hi all, im doing a project where i have to implment a rpg game... i have a class called item and the constructor looks something like public Item(int x, int y, String image_path, boolean z) { map_x = x; map_y = y; image = new Image (image_path); pickup = z; … | |
[CODE]package Add; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForward; public class AddSuccessAction extends Action { private final static String SUCCESS = "success"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { … | |
Write a program that generates one hundred random integers between 0 and 9 and displays the count for each number. Your program must have method that returns the counts for each number. Hint: Use (int)(Math.random() * 10) to generate a random integer between 0 and 9. Use an array of … | |
The source of my COPYRIGHTED tictactoe java game. It shows how to use multiple classes, methods, etc. | |
I designed chess board game before , i did for loop for rows and i did for loop for column ... and the result appear good . But here i want to make the board by two inner loop inside them . I do that but the rows not appear … | |
java programming is the latest program around the world. i am a student of computer programing our assessment are too near, i need to learn java programs in just four days starts from tomorrow ... could you? | |
I am trying to write a program that will give me the volume of a cylinder when I run it. I already have a Circle class that computes the area of a circle. I am also using a seperate program to handle the input and output. Could someone tell me … | |
I dont have idea how to show "kim chong" words backward(gnohC mik). anyone have idea for this quenstion pls share thanks! | |
Hi, I made this test page: [url]www.wearwolfdesign.com/index.php[/url] In Safari, Opera, Internet Explorer and Google chrome it works perfectly all look slightly different but acceptable. The problem is in FF the text at the top looses all it's format and goes a horrible font with no positioning. The second issue is … | |
An online retailer sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49; and product 5, $6.87. Write an application that reads a series of pairs of numbers as follows: a) product number b) quantity sold Your program should … | |
Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables. Draw UML diagram for class Person. Then, create an application class that asks the … | |
Since I am still beginning to explore the digital television technology, I read and reviewed the information I found on this site: [url]http://www.tvwithoutborders.com/[/url]. I found many interesting ideas about developing interactive TV viewing on a mobile. In the latter site I found out that you can make an application using … | |
Hello. I've been using NetBeans for quite a while, and I really like the Draggable components that it uses. In both the GUI Builder & the GUI itself. So, my question is, How do you drag components around in the UI like that? I've looked into the java.awt.dnd package, and … | |
So, i'm working on creating a very basic currency converter from Pounds to Euros or Euros to Pounds. It takes the exchange rate from the user then asks which way to convert. Then asks the amount of currency. This was easy for me to do in just one main class, … | |
I need to display the loan table with the annual interest rate, monthly payment, and total payment for the number of years entered. When I run my program, it only displays the info for 8%, when I need to display all interest rates from 5% to 8% in increments of … | |
| |
Hi, I am firs time on this forum. I am looking for somebody to develop smart card system for pay per use tanning beds. Anyone interested please contact me. | |
Forgive me for making a topic that has the potential of being too broad. I will do my best to avoid generalizations and get to the point. I have a development team that is experienced in C++, some Java, PHP, and SQL databases. We are trying to create a web … | |
This is a working program. But there is a logical error. Try this with the calculator: Press 2,M; Press R,*,2; Press R,*2; The output in the same order must be: 2 2*2 = 4 2*2 = 4 but the third one outputs 88 instead. M stands for Memory, it stores … | |
WHAT i want to happen is, when i click the CALCULATOR menu item, my separate Calculator.java will run on the MenuShortCut JFrame. AGAIN, i want the separate .java file to appear on THE SAME JFrame of MenuShortCut class. here's what i've got [CODE=java] import javax.swing.*; import java.awt.event.*; public class MenuShortcut … | |
Hi, I have some problems aka how to bring value of type double (or even array of double values) through socket from C++ server to Java applet client. I tried two possibilities. For example: [LIST=1] [*] Doesn't work, but I think it could be ok while working In c++ my … | |
I wonder if i writing the correct code segment to read data from binary file.eg.the content file operation in constructor [CODE] try{ raf = new RandomAccessFile("record.dat","rw"); } catch(IOException ex) { JOptionPane.showMessageDialog(null,"Error create file"); System.exit(0); } [/CODE] write content to file [CODE] do { Name = JOptionPane.showInputDialog(null,"Please Enter The Account Holder's … | |
What is Bottom up & Top-down approach And How it can be implemented in JAVA? | |
hey guys i want an help from you guys to create a jar file for my keylooger project which i had developed in java and vc++ using jni technology.while i try to create a jar file for it using the specified command which create a manifest file ALSO it is … | |
I am starting to try and learn how to use the google app engine with java. The first roadblock I hit (seems trivial but I can't find an answer anywhere) is logging in. I know how to use the screen google provides you (userService.createLoginURL(req.getRequestURI())) but that only gives you a … | |
how do i increment the category book? eventually i will display it in summary *************** Summary Books 3. [CODE]public class ProductDB { public static String[] inventory = {" java", "jsps", "mcb2", "txtp", "sgtp", "tgif", "tcby", "myob"}; public static Product getProduct(String productCode) { Product p = null; if (productCode.equalsIgnoreCase("java") || productCode.equalsIgnoreCase("jsps") … |
The End.