Posts
 
Reputation
Joined
Last Seen
Ranked #85
Strength to Increase Rep
+14
Strength to Decrease Rep
-3
87% Quality Score
Upvotes Received
658
Posts with Upvotes
611
Upvoting Members
188
Downvotes Received
110
Posts with Downvotes
82
Downvoting Members
36
125 Commented Posts
~1.57M People Reached
Favorite Tags
Member Avatar for nikk8a
Member Avatar for Sachin_41
0
10K
Member Avatar for federerforehand

Start small. Pick a small easy part of the program to do. Write the code for that and come here as you have problems.

Member Avatar for Jerry_23
-2
4K
Member Avatar for Joslup

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?

Member Avatar for Ayesha_17
0
710
Member Avatar for Cort3z

Can you make a small,complete, executable example vs what you've posted with the ...

Member Avatar for JamesCherrill
1
7K
Member Avatar for student.09
Member Avatar for sahil_26
0
7K
Member Avatar for smachee

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?

Member Avatar for patrick_25
0
5K
Member Avatar for babi.meloo

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.

Member Avatar for Paul_65
0
2K
Member Avatar for WDrago

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, …

Member Avatar for JamesCherrill
0
28K
Member Avatar for jmace

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.

Member Avatar for rproffitt
0
697
Member Avatar for laguardian

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 …

Member Avatar for stultuske
0
3K
Member Avatar for Matth963

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?

Member Avatar for Jhonathan_1
0
5K
Member Avatar for insanely_sane

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.

Member Avatar for David_97
0
2K
Member Avatar for enakta13

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 …

Member Avatar for Stungkuling
0
16K
Member Avatar for m.a.x

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?

Member Avatar for JamesCherrill
0
1K
Member Avatar for Gregt1991

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.

Member Avatar for happygeek
0
21K
Member Avatar for ThisIsMeOrIsIt

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 …

Member Avatar for stultuske
1
317
Member Avatar for scheppy

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.

Member Avatar for JamesCherrill
0
4K
Member Avatar for prem2

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.

Member Avatar for sepp2k
0
2K
Member Avatar for sky_B
Member Avatar for dodo11
0
158
Member Avatar for glenak

[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 …

Member Avatar for lilly13
0
1K
Member Avatar for Boby Smith
Member Avatar for tabish saroha

How does the data from the scanner get into the PC? Does the scanner come with an API that a java program can call?

Member Avatar for JamesCherrill
0
1K
Member Avatar for nidheeshkumar.r
Member Avatar for The king

[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 …

Member Avatar for stultuske
0
880
Member Avatar for corby
Member Avatar for jazz_vill

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?

Member Avatar for Reshma_2
0
2K
Member Avatar for obscurecoder

[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 …

Member Avatar for stultuske
0
188
Member Avatar for Hunter2379

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.

Member Avatar for ROurOu
0
657
Member Avatar for stillHaveHope

Can you show what the program inputs and outputs and describe what's wrong with the output?

Member Avatar for radhakrishnan.akshai.3
0
9K
Member Avatar for androidf