2,777 Posted Topics

Member Avatar for subhraakasuny

What is the command line you are using? Do you put the path to the src folder in the -classpath option used in the command line? **I don't know if the javac command will use both the environment variable AND the -classpath option's value.** To see what classpath is used …

Member Avatar for subhraakasuny
0
423
Member Avatar for sofien.fkih

Does the OS have any other ways to tag running programs so you can tell which is which?

Member Avatar for sofien.fkih
0
282
Member Avatar for zakiraimanaz

What part are you having problems with? Displaying a button Adding a listener to the button Executing the listener's code when the button is pressed Doing a save in the listener code

Member Avatar for zakiraimanaz
0
736
Member Avatar for shredder2794
Member Avatar for babi.meloo

Try debugging the code by printing the values of the variables used in the draw() method to see where the fillRect() method is drawing.

Member Avatar for babi.meloo
0
1K
Member Avatar for forjustincase

> create a JAR file which will containt everything required. You might not need to put the contents of the other jar files into your jar file. The manifest file has a record/line where you can specify other jar files: Class-Path: One of my manifest files: Main-Class: CmprFolders Class-Path: DocumentViewerWParser.jar …

Member Avatar for JamesCherrill
0
322
Member Avatar for Atlanta15Braves

Take a look at the tutorial: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/for.html http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html Write a for loop then add an array using the loop variable inside the loop to index into the array

Member Avatar for Atlanta15Braves
0
4K
Member Avatar for freesoul.rahul

Each thread could get the time it started by calling the System class's currentTimeMillis() method when it starts and call it later in execution and compute the duration the thread has run by subtracting the start value from the current value . When the user time has run out, the …

Member Avatar for freesoul.rahul
0
321
Member Avatar for Violet_82

That doesn't look like valid java code. var is not part of java. > What happened if I omit the "f" at the end? If it is java, compile and execute the program and see what happens.

Member Avatar for Violet_82
0
168
Member Avatar for Sumal

Please post the full text of the error message that shows what the index's value is. If an array is empty, it does not have a first element (index of 0) The code should test the array's length BEFORE trying to index into it. A length of 0 means there …

Member Avatar for NormR1
0
311
Member Avatar for rami sohaill

Try doing some debugging by adding some println statements that show the values of the variables as they are changed. Make sure that there is only one object being used. For example are you calling the set method for one object and calling the get method with another object.

Member Avatar for JamesCherrill
0
353
Member Avatar for a7x813

> sometimes gives me errors Please post the full text of the error messages. What is the algorithm/design that you have for removing duplicates? Can you list the steps the program should take to find and remove duplicates? When you get a good algorithm, then work on coding it in …

Member Avatar for subramanya.vl
0
1K
Member Avatar for lalitapatil
Member Avatar for NormR1
0
189
Member Avatar for AlexThugNastyTyricebiggumsBello

That looks like the normal contents of a browser's java console that is displayed when the browser uses the java plugin. It does not show that there are any problems.

Member Avatar for NormR1
0
248
Member Avatar for SHINICHI

Look at what is to be printed on each line. The first line has one number, the second line has two number. Each line starts with its line number and decrements. Make some loops that follows those rules.

Member Avatar for jalpesh_007
0
134
Member Avatar for Linsley

> :Expected end of line, etc. but found identifier. Please post the full text of the error message that shows the source line where the error happened.

Member Avatar for radhakrishna.p
0
404
Member Avatar for DEAD TERMINATOR

> this isn't working Please explain\ what happens. If the code throws an exception, copy the full text and paste it here. One problem I see is that you are not saving the String returned by the replace() method. The value of a String object can not be changed. The …

Member Avatar for radhakrishna.p
0
214
Member Avatar for Kronolynx

> results[4][5] = i; // problem here nothing gets stored How do you know? Is the statement executed? It's inside of an if statement. Add a println immediately after that statement that prints out the value of results[4][5] and the value of i. Then you'll see what was stored in …

Member Avatar for Kronolynx
0
150
Member Avatar for _eclipse

> I'm getting a few errors You need to post the full text of any error messages that you need help with. > not sure how to continue To see what is in the token array use the Arrays class's toString() method to format the array for output: `System.out.println("an ID …

Member Avatar for _eclipse
0
168
Member Avatar for oldezwe
Member Avatar for JamesCherrill
0
326
Member Avatar for Kronolynx

Pad the Strings in the first column with spaces so that they are all the same length. say you want the first column to be 20 characters wide and the String to print is 15 chars long, then you need to add a String of 5 spaces to fill the …

Member Avatar for NormR1
0
216
Member Avatar for jprog1000

> program is not painting anything What method does the drawing of the ball? Is that method being called? Add a println to print a message to show that it is called. What code calls the method where the ball is drawn? Calling the repaint() method asks the jvm to …

Member Avatar for javaprog200
0
352
Member Avatar for KRUX17

Does the code compile without errors? The intent of generics was to allow the compiler to check if the correct data types are being added to the ArrayList.

Member Avatar for jalpesh_007
0
229
Member Avatar for junweixiong
Member Avatar for java_programmer

Using a String to get access to a class sounds like you need to use a Map or reflection. Using a String to create a call to a method sounds like you would need to use reflection.

Member Avatar for NormR1
0
124
Member Avatar for javaprog200

Can you post the contents of the .java.policy file and its location? The policytool should have found it in the correct location, but it can be overridden to write to a location that the java program does not look at. Mine is located at: > C:\Users\Norm\\.java.policy I think its found …

Member Avatar for javaprog200
0
628
Member Avatar for CoilFyzx

Why not use a loop to copy an element from each array into the target array? Define the target 2D array and copy to elements 0 and 1

Member Avatar for CoilFyzx
0
326
Member Avatar for LdaXy_1

Normally you add a listener to the items you want to be able to receive notice of events like clicks.

Member Avatar for <M/>
0
485
Member Avatar for taylor.mitchell.353

Comments: The code is poorly formatted If key is a String, why do this: ` key.toString()` use key directly What does this mean: subtracts 9 to make unicode into values A,B,C...=1,2,3... 'A' - 9 = 56 not 1

Member Avatar for taylor.mitchell.353
0
184
Member Avatar for anshuman.blaze

Look at the pattern of what goes on each line. How many numbers go on the first line? How many on the second? etc Use some loops: one for each line and one for the contents of a line

Member Avatar for NormR1
0
76
Member Avatar for bibiki
Member Avatar for bibiki
0
915
Member Avatar for mark.barrera.94

Please post the full text of the error message that shows where the error happens. Look at the source line where the error happens and see what variable has a null value and then backtrack in the code to see why that variable does not have a valid non-null value.

Member Avatar for NormR1
0
111
Member Avatar for meenal9

What code have you written so far? Do you have any specific problems or questions to ask about it? Post your code and your questions so we can help you get your code to work.

Member Avatar for jalpesh_007
0
129
Member Avatar for qw1122

What have you written so far? Do you have any specific questions about your assignment?

Member Avatar for jalpesh_007
-1
139
Member Avatar for Hammer Engineer

Are you looking for a design/algorithm or do you have one and need help coding it in java?

Member Avatar for jalpesh_007
0
2K
Member Avatar for Brittinei

> (I'm getting a infinite while loop Add some println calls in the loop that prints out the value of numberOfChar to see what the code is reading that makes it loop forever. Have you read the API doc for the Scanner methods to see what they can do? For …

Member Avatar for jalpesh_007
0
200
Member Avatar for Brittinei

> Im having trouble counting the words Can you explain? How many words does the program read and how many does it count? What is the output from the program.

Member Avatar for jalpesh_007
0
278
Member Avatar for taylor.mitchell.353

Replace the list of if statements with a statement that returns the value for the character. Since the values of the chars are contiguous: 'b' = 'a' + 1 and you can do arithmetic with char variables, consider these: 'b' - 'a' = 1 or 'z' - 'a' = 25

Member Avatar for NormR1
0
301
Member Avatar for Akira01

> to show my fellow staff members that I am making progress Where is your attempt at writing the code in Java? Here are a couple of links: http://docs.oracle.com/javase/tutorial/java/TOC.html http://docs.oracle.com/javase/tutorial/reallybigindex.html

Member Avatar for Akira01
0
241
Member Avatar for jib123

> it gives out a horrible box of code Please copy and paste the full text of any error messages generated by the program. I assume that is the "horrible box" that you are seeing. On windows To copy the contents of the command prompt window: Click on Icon in …

Member Avatar for NormR1
0
1K
Member Avatar for cyanide911

Did you look at this: http://www.daniweb.com/software-development/java/threads/430542/java-projects-for-learners

Member Avatar for NormR1
0
171
Member Avatar for salan

> how to calculate car insurance premium based on the age,Licence and Engine size That sounds like you need a formula that takes those values and some constants to compute the premium. What problems are you having getting the values needed and computing the premium?

Member Avatar for NormR1
0
219
Member Avatar for ciobanu.alexandru.cristian

Can you post the full text of the error messages you get. Can you explain what problems you are having?

Member Avatar for ciobanu.alexandru.cristian
0
211
Member Avatar for mehnihma

Can you post what the csv file would look like given the XML you posted for input?

Member Avatar for mehnihma
0
234
Member Avatar for marek2121
Member Avatar for NormR1
0
110
Member Avatar for marek2121
Member Avatar for amahmoud
Member Avatar for NormR1
0
170
Member Avatar for germainelol1

What steps does the code need to take to do the multiplication? Or what algorithm have you got for doing it? Once you get a design for the method, then work on how to impliment it.

Member Avatar for NormR1
0
339
Member Avatar for littlebit12
Member Avatar for NormR1
0
137
Member Avatar for kedxu

The End.