- Strength to Increase Rep
- +14
- Strength to Decrease Rep
- -3
- Upvotes Received
- 658
- Posts with Upvotes
- 611
- Upvoting Members
- 188
- Downvotes Received
- 110
- Posts with Downvotes
- 82
- Downvoting Members
- 36
Re: Can you make a complete program of the posted code that will: compile, execute and show the problem? | |
Re: Start small. Pick a small easy part of the program to do. Write the code for that and come here as you have problems. | |
Re: How is the game played? Does each animal take a turn until one of them reaches the goal? Is there any user interaction with the program or does it run by itself? Would the percentages be part of the computation for an animal's move? | |
Re: Can you make a small,complete, executable example vs what you've posted with the ... | |
| |
Re: Why did you add your question on an existing thread instead of starting your own? Your problem has no relationship with the topic of this thread. Do you have any specific questions about the program you are trying to write? | |
Re: There should NOT be code in the paint method to set background and size in the paint() method. Try debugging the code by printing out the values of all the variables used in the draw() method to see where the fillRect() method is doing its thing. | |
Re: A non-static variable only exists when there is an instance of an object. If you have a static method, it can NOT get to any variable in a class object unless it has an instance of that class and uses that to get to the variable. For your inner class, … | |
Re: Have you read the RFC on how FTP works? You can use a Socket connection to send the FTP server commands made of Strings. You need to know the protocol for it to work. | |
Re: Those methods return a double value. You could assign the value to a double variable and use the println() or the printf() methods to print it. Can you describe what the code you are writing is supposed to do? The VehicleN methods take a String argument but do nothing with … | |
Re: Will this be a console application or will it use GUI with a frame, input fields and buttons? What have you done so far? Do you have any specific questions? | |
Re: There are plenty of sample programs that are applets and that draw shapes etc on panels. Try searching on the various forums for Applet, JApplet, paint( or paintComponent( for some sample code. | |
Re: I don't think an array of char can have an element that is null. It can have an element with a value of 0. > isn't working Can you post the code that is not working? Is you problem using a for loop? It will stop looping when the condition … | |
Re: What code is controlling the dialog boxes? Where is that code executing? Is there a server involved? How does the server communicate with the client? | |
Re: Try debugging the code by adding printlns to show the values of variables and expressions as the code executes. The print out will show you where the program is not doing what you want it to do. Copy and paste here the console from when you execute the program. | |
Re: Add lots of println statements to print out the values of variables used to contol the program's execution. You need to explain what is wrong with the current output and post an exampleof what the output should look like. The posted code does not compile without errors. One problem is … | |
Re: Look at the API doc for the JButton class and the class it extends. There are methods that will help you. If you have any questions about how to use a method, copy its doc here with your question. | |
Re: On Windows you don't need to set the classpath variable. In fact sometimes there is a problem if you don't set it correctly. Often it is better to pass the classpath to the java command on the commandline with the -cp option. | |
Re: Where is the title to be displayed? How are you executing the applet? | |
Re: [QUOTE]oClassDefFoundError: SiteTesting (wrong name: networking/SiteTesting)[/QUOTE] Is your program in the networking package? If so you need to add the full package name to the class name: code = "networking.SiteTesting" Then the class file would have to be in the networking folder. A simpler solution is to remove the package statement … | |
Re: How does this relate to java programming? | |
Re: How does the data from the scanner get into the PC? Does the scanner come with an API that a java program can call? | |
Re: [QUOTE]when i tried to add more images it fails..[/QUOTE] Please explain what fails. | |
Re: [QUOTE]i need a help in how to make this faster[/QUOTE] You didn't post the code, so no idea how the program can be changed. Are you sure it's not the matlab.exe program that is slow? Have you tried the program with another .exe file to see what happens? How fast … | |
Re: Code works for me. I changed the .wav reference to a local file: | |
Re: Seems like a lot of work for nothing. Why go through all the loops etc? How does this code relate to the problem that was posted over ONE YEAR AGO? | |
Re: [QUOTE]But now when I try to use this command: Cl/LD NativeDemo.c the response I get is: 'Cl' is not recognized as an internal or external command, operable program or batch file.[/QUOTE] The OS can't find the command you entered: Cl Do you have a Cl.exe file on your computer? Does … | |
Re: Little squares means you are picking up uninitialized bytes that have the binary value of 0. Check the code to see that you are not going past the end of the good data. Also put your code in the code tags. Last icon on the right above input window. | |
Re: Can you show what the program inputs and outputs and describe what's wrong with the output? | |
Re: The Apache project has packages that might do that. |