2,777 Posted Topics

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
350
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
186
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
244
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
132
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
402
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
211
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
148
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
163
Member Avatar for oldezwe
Member Avatar for JamesCherrill
0
325
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
213
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
346
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
226
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
122
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
626
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
325
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
481
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
181
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
73
Member Avatar for bibiki
Member Avatar for bibiki
0
911
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
108
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
124
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
136
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
197
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
276
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
299
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
239
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

The End.