2,777 Posted Topics

Member Avatar for Thermalnuke

Please post the FULL text of the error message that shows the source statement. > cannot find symbol method toLowercase() What class is that method in? The compiler can not find a method with that name in the class you are using to call the method. Make sure you are …

Member Avatar for NormR1
0
5K
Member Avatar for sadzee

When trying to understand or debug code, use the println method to print out the values of all the expressions and variables being used it the code so you can see what the computer sees. One confusion people have when talking about conversion is that everything in the computer is …

Member Avatar for NormR1
0
223
Member Avatar for rezal

Can you explain what the problem is? What happens when you execute thte code. Please add printlns to the code to show what the code does when it is executed and post the output here.

Member Avatar for NormR1
0
207
Member Avatar for raj.mscking
Member Avatar for NormR1
0
218
Member Avatar for Nineways

Please post the full text of the error message. It has the line number where the exception happened which you'll need to find the problem. Look at the line where the error occurs, find the variable with the null value and then backtrack in the code to see why it …

Member Avatar for NormR1
0
294
Member Avatar for sdr001
Member Avatar for speakon
Member Avatar for JamesCherrill
0
291
Member Avatar for sonicx2218

Have you read the API doc for the LinkedList class to see what methods it has? what do you want the program to do inside the while loop?

Member Avatar for sonicx2218
0
124
Member Avatar for naiiimah

> I don't know what to set the data fields in Customer Save the values passed in the constructor in the class's member variables.

Member Avatar for NormR1
0
200
Member Avatar for ITOzann

Does the code give a compiler error? Please post it. What is the , in the middle of the boolean expression for?

Member Avatar for NormR1
0
284
Member Avatar for Samama

The FIle class has methods that will return an array of the files contained in a folder. The File class has methods for getting the path to a file.

Member Avatar for DavidKroukamp
0
97
Member Avatar for polarbear125

I see a println(value) on line 20 in your code. Is that the code that does not work? Where do you call the method: getNumDots()? You need to call that method to have it be executed. > the compiler just skips it. Please explain what happens when you compile the …

Member Avatar for DavidKroukamp
0
237
Member Avatar for rajesh1158
Member Avatar for Hektik1

Can you post the console that shows what the program does when you execute it. Add comments to the posting to show where the problem is. To copy the contents of the command prompt window: Click on Icon in upper left corner Select Edit Select 'Select All' - The selection …

Member Avatar for Hektik1
0
179
Member Avatar for baseballer

Did you look up the meaning of the -1 returned value? Print out the String that is being searched and the String you are looking for so you can see what the computer is seeing. Be sure to surround the String with delimiters at each end. For example: ">" + …

Member Avatar for NormR1
0
223
Member Avatar for ct_hunny

> you should know the right way to do it. In catching, you should use catch > > (Exception e){System.out.print(e.printStackTrace());} Not quite. More like this; `(Exception e){e.printStackTrace();}`

Member Avatar for joankim
0
226
Member Avatar for javaprog200

I don't know of any way. Text areas are for text. A JTextPane can display images and text.

Member Avatar for DavidKroukamp
0
5K
Member Avatar for lj81

Can you remove the extra blank lines in the code? They spread the code out too much and make it hard to read.

Member Avatar for lj81
0
173
Member Avatar for <HHH>

Does removing an element change the locations of the following elements? Try scanning into the list from the end so the indexes of the remaining elements don't change.

Member Avatar for JamesCherrill
0
130
Member Avatar for Kitt3nkat
Member Avatar for robin99
Member Avatar for robin99
0
589
Member Avatar for polarbear125

> "cannot find symbol variable result, Did you post the correct code or error message? I do NOT see any variable named: result in what you posted Please post the FULL text of the error mesage that shows the source line etc. Your editted version has left off important information.

Member Avatar for polarbear125
0
183
Member Avatar for sdr001

Can you post some example Strings that are read in and the results you want to get?

Member Avatar for NormR1
0
227
Member Avatar for sarrrry92

What does the main method have to do? Make a list of the steps it needs to do and then try writing the code to do those steps. Which step(s) are you having trouble with?

Member Avatar for joankim
0
170
Member Avatar for brandon66

Take a look at the tutorial at this link: [Click Here](http://docs.oracle.com/javase/tutorial/essential/exceptions/index.html)

Member Avatar for NormR1
0
213
Member Avatar for ITOzann

> Exception in thread "main" java.lang.NullPointerException > at CheckoutArea.main(CheckoutArea.java:206) What variable has a null value on line 206? When you find the variable, then backtrack in the code to find out why it does not have a valid non-null value. You should add id strings to your println statements so …

Member Avatar for ITOzann
0
382
Member Avatar for lena1990
Member Avatar for justindill

> need to figure out how to get them to work together and properly Can you explain what problems you are having?

Member Avatar for NormR1
0
142
Member Avatar for Mopikope
Member Avatar for NormR1
0
236
Member Avatar for apanimesh061
Member Avatar for mehnihma

Can you post more code that shows where the components are defined and where they are being shown in the GUI?

Member Avatar for mehnihma
0
224
Member Avatar for makehaste

If you want the change mad when the radio button is selected, you need to add a listener that will be called when the button is selected. In the listener method you can make the changes you want.

Member Avatar for NormR1
0
351
Member Avatar for sarrrry92

Please post the full text of the error messages. The posted code has some **s on line 11 that should not be there. Remove them.

Member Avatar for NormR1
0
166
Member Avatar for uurcnyldrm

Please explain what you mean by a decimal value and a binary equivalent. Are you talking about Strings? For example decimal: "10" and binary: "1010" An int is 4 bytes of bits. You can display the value of an int in many String formats. But an int is an int.

Member Avatar for scudzilla
0
215
Member Avatar for migelitto

Please post a small program that compiles, executes and shows your problem.

Member Avatar for migelitto
0
203
Member Avatar for alexpegg1
Member Avatar for NormR1
0
258
Member Avatar for Nimzy

What does the code do incorrectly when the Replay button is pressed? What steps does it need to take to do what you want it to do?

Member Avatar for NormR1
0
834
Member Avatar for soham.m17

Can you make a small simple program that compiles, executes and shows the problem? We need a program to test with.

Member Avatar for soham.m17
0
723
Member Avatar for soham.m17

> access g to draw lines from other methods Call the other methods from the paint method and pass them the Graphics object: g that was passed to paint. `otherMethod(g);`

Member Avatar for NormR1
0
97
Member Avatar for renzlo

FYI: To copy the contents of the command prompt window: Click on Icon in upper left corner Select Edit Select 'Select All' - The selection will show Click in upper left again Select Edit and click 'Copy' Paste here.

Member Avatar for renzlo
0
328
Member Avatar for bhawna_5nov

Please wrap your posted code in code tags. See the [ CODE ] icon above the input box. Where do you want this applet window to open? Normally applets are displayed in the context of an HTML page in a browser. Do you want the browser to read another HTML …

Member Avatar for NormR1
0
1K
Member Avatar for jackmaverick1
Member Avatar for jackmaverick1
0
198
Member Avatar for CWoods22

> it will let you click one button but does not recognize a second button click Try debugging the code by adding a println statement first thing the actionPerformed() method that prints out the value of the ActionEvent object passed to the method and also the values of any of …

Member Avatar for NormR1
0
419
Member Avatar for apanimesh061

How will you determine if the Strings are unique? A Set will help you do that. Or use an ArrayList to hold the Strings and check if the next String you get is already in the list before adding it to the list.

Member Avatar for NormR1
0
157
Member Avatar for blackmagic01021
Member Avatar for blackmagic01021
0
172
Member Avatar for <HHH>

Please post some of what is printed out. Why are you using the DataInputStream?

Member Avatar for joankim
0
351
Member Avatar for Checkerboz

What does the API doc say for the Image class's getWidth() method? Does the picture variable have a valid image?

Member Avatar for Checkerboz
0
355
Member Avatar for Thermalnuke

The output: CIRCLE@addbf1 is from the default toString() method. Add a toString() method to the CIRCLE class that returns what you want to see printed.

Member Avatar for Thermalnuke
0
137
Member Avatar for lena1990

Applets are restricted in what they can do. They need permission to connect to a site if they were not loaded from that site. Are you loading the html with the applet from a server at 127.0.0.1? > i give the applet the folllowing permission Where is the policy file …

Member Avatar for Darryl.Burke
0
318
Member Avatar for joankim

How many digits in the number that did not print? Are you using int or long variables? Do you know the largest number that an int will hold? 2147483647

Member Avatar for joankim
0
248

The End.