32,204 Topics
| |
my program seems to run fine the first time i run it, but when the JOptionPane box shows up at the end asking if id like to run it again it seems to restart my balance to the initial amount rather than keep it and continue subtracting or adding [CODE] … | |
Is it necessary to archive ALL of the updates received from Microsoft and Java? Doesn't each subsequent update negate the previous one? | |
here are the instructions for my assignment Write a program that counts the number of words, lines and total characters (not including whitespace) in a paper, assuming that consecutive words are separated either by white space or end-of-line characters. Your output from this particular file should say: line count: 58 … | |
So I need to make this program that Reads a file with a scanner, inserts each key and value into a hashmap, and when the user types in one of those keys, it will print both the key and the value. If it has no value, it says so, and … | |
It compiles without any errors in Eclipse, and when I comment it out, the application does not crash, but somewhere in here it is making my application crash on startup. Does anyone know how to fix this problem? [code=Java] Button send_button = (Button)findViewById(R.id.SendButton); spam_button.setOnClickListener((OnClickListener) this); phone_number = (TextView)findViewById(R.id.ph_num); txt_body = … | |
What I need to do is using classes, design an online address book to keep track of the names, address, phone numbers, and birthdays of family members. The program should be able to handle a maximum of 500 entries. a. Define the class Address that can store a street address, … | |
EDIT: Nevermind, I already found what was wrong; But I can't draw a card properly when I run it still. [CODE]import java.util.Scanner; import java.util.InputMismatchException; public class CardDealer //Main Class { public static void main(String[] args) { Scanner keybd = new Scanner(System.in); Deck deck1 = new Deck(true); int count = 0; … | |
The application will ask questions like: What comes after D? A child is expected to answer the question and the application will inform the child if the answer is correct or wrong. The application will ask a total of 20 questions. After all 20 questions have been answered, the application … | |
here i attached my question ... and i have done the first part and i stuck in the logic part ,can anybody help | |
Hi experts, I have confusion about the point I read in my book: I. In a source file you can define number of classes, but only one of them can be a public class. In this case, the name of source file must match the name of public class. II. … | |
Hey Guys - i am really new to Java and am having some serious problems trying to figure out how to use the painting stuff. My problem i am trying to get to work is that i need to create a 'circle' by using lines from X number of points. … | |
so this program takes an input file and computes the class average and lists the students who are below average and the students with the highest score. Heres what im having trouble with: Having trouble getting the proper for loop to calculate sum, I've tried many different ways but its … | |
This program is a GUI shopping menu with text fileds next to item descriptions. My question is about the add method in ShippingCart class. It is called every time an action occurse in a text field, from a GUI class not shown here, where quantity requests are entered. So when … | |
Hi im writing a code that is supposed to display this * ** *** **** ***** **** *** ** * i have this so far for (int i=0;i<6;i++){ for (int j=0;j<i;j++){ which displays this * ** *** **** ***** how do i get the reverse side | |
Hi Buds......... I have an JApplet in which i want to display Urdu word in the JTextArea The JApplet is connected to MSAccess Thorugh DSNless JDBC-ODBC Bridge....... the parameter passed to database is in Punjabi language which will match from the database and select the equivalent URDU word The Urdu … | |
I want to find the link between the applications shown in task manager to that of the process tab in task manager. For this first I have to get the applications running in task manager. | |
Hi all, i am new to java, i am doing a grid computing project, anyone related to the fields please reply me. so that i can discuss my problems with u. regards | |
Hi, I need a charting API which can plot static Line Graph for 300 million points. API should support zooming and panning of axes comfortably after plotting 300 million points. I tried with JFreechart but the result is not good for even 100 million points. Does anybody have any Idea … | |
Hi, I dont understand why, but for some reason, the system does not recognize the buffered reader in the fileReverse method. Every time I try to invoke the readLine method on aBufferedReader, I get null as a result. Even my file reads: null null null null Can someone please help … | |
Hello, i need assistance with a mortgage calculator program. the requirements are : Program designed with GUI to Write the program in Java (with a graphical user interface) and have it calculate then display the mortgage payment amount from user input of the amount of the mortgage and the user's … | |
[code]package inventory; // Product class import java.util.jar.Attributes.Name; // Creates Product Class, contains the inventory components public class Product { public static main(String[] args) {//begin main method Number number = new Number(001); Name name = new Name ("Highlighter"); Units units = new Units (6); Price price = new Price (2.50); //print … | |
Okay. I have been seriously struggling with this lately. I've searched and searched forever. The closest I found was this thread here: [url]http://72.5.124.102/thread.jspa?messageID=1662301[/url] What I am trying to acheive: I want to give my interface grayscale images for icons(png), and have a filter class that can color the grayscale images … | |
how to use system time in java & increment seconds then minutes and hour ?? can anybody will give me code?? | |
Hello all! I'm fairly new to programming (and have VERY little experience with JAVA) so please be gentle. :-) I'm looking at a piece of software created with Java and accessible via a https webpage, hosted locally. I login and there are several pictures on the site. I'm trying to … | |
it is strange that my code was working before I modified some variable name/ type. i didn't make any major changes except for changing from double to int, and from double to String. the change was involved a bit sql code change as well though. i got (does anyone have … | |
Hi guys. I have an observer/observable structure set up in my code that changes a bunch of TextField values with updated data, no big problem here. However, in my update(Observable obs, Object arg) method, I am trying to call another method to insert the new values into my database. I … | |
hey guys , I would like to read info from a file e.g [inline] 10 999990 Gerry Boudens $1000.00 999991 Jimmy Chow $1500.00 [/inline] it is a credit card program, so the user would input their name and the program searches for it, if found it should show their credit … | |
Hey! I need to program a simple arithmetic calculator. I've done the parser, infix to postfix, etc. Everything's working with no problems except that it only works with one-digit numbers. For example: 10+2 evaluates to 2 instead of 12. Here's the code of the parser: [CODE] package calculator; public class … | |
Hi all, i want to ask u guys what else i need to do to run this code? i have JDK. i have these file in my c:/program files/java/jdk1.6.0_16 c:/program files/java/jdk1.6.0_18 c:/program files/java/jre6. if i want to run this code,what do i need to do? [CODE] import java.awt.graphics; class HelloWorldApplet … |
The End.