must say I am at a loss. Ill try running it for myself later(when Im at home) if you haven't figured it out by then. You don't need to be declaring all those doubles in main, but that wouldn't...
Type: Posts; User: Rihx
must say I am at a loss. Ill try running it for myself later(when Im at home) if you haven't figured it out by then. You don't need to be declaring all those doubles in main, but that wouldn't...
The code looks like it should work to me, perhaps try adding System.out.flush() at the end to make sure its not stuck in stdout... Are you running it in an IDE or on the command line?
Does the program finish running, or does it hang? Also, you seem to have a rogue ; floating in limbo.