2,777 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: What code do you have so far? Do you have any specific java programming questions? | |
Re: 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 … | |
| |
Re: > I get the exact same error Please post the full text of the error message | |
![]() | Re: 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? ![]() |
Re: > 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. | |
Re: Does the code give a compiler error? Please post it. What is the , in the middle of the boolean expression for? | |
Re: 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. | |
Re: 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 … | |
Re: What prints out if you put a println in the blocks? | |
Re: 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 … | |
Re: 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: ">" + … | |
Re: > 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();}` ![]() | |
Re: I don't know of any way. Text areas are for text. A JTextPane can display images and text. | |
Re: Can you remove the extra blank lines in the code? They spread the code out too much and make it hard to read. | |
Re: 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. | |
Re: Where do you use the value read in from the user into: numRows? | |
Re: Are you taking about the destination choice list you get when printing? | |
Re: > "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. | |
Re: Can you post some example Strings that are read in and the results you want to get? | |
Re: 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? ![]() | |
Re: Take a look at the tutorial at this link: [Click Here](http://docs.oracle.com/javase/tutorial/essential/exceptions/index.html) | |
Re: > 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 … | |
Re: Look at the AppletContext class's showDocument() method. | |
Re: > need to figure out how to get them to work together and properly Can you explain what problems you are having? | |
Re: > how would i stop each one The Timer class has a methods you could call. | |
Re: Do you have any specific java coding questions? | |
![]() | Re: Can you post more code that shows where the components are defined and where they are being shown in the GUI? ![]() |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: Please post a small program that compiles, executes and shows your problem. | |
| |
Re: 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? | |
Re: Can you make a small simple program that compiles, executes and shows the problem? We need a program to test with. | |
Re: > 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);` | |
Re: 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. | |
Re: 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 … | |
Re: Could you post the code here on the forum that you are asking questions about? | |
Re: > 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 … | |
Re: 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. | |
Re: > it does not work. Can you explain? If there are error messages, please post them. | |
Re: Please post some of what is printed out. Why are you using the DataInputStream? ![]() | |
Re: What does the API doc say for the Image class's getWidth() method? Does the picture variable have a valid image? | |
Re: 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. | |
Re: 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 … | |
![]() | Re: 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 ![]() |
The End.