View Single Post
Old Jul 31st, 2007, 1:09 AM   #2
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
Well I think I may have found a way to fix it. If I go into the Build menu before each new run, and hit Clear and Build, then re-run the program it seems to work.

But you know if you remove the println statements and change them to just print, it doesn't show up on the output until the whole program is done. In other words, when you use println("Enter a value for x: ) it will show on the output window:

Enter a value for x:

But if you remove the println and just code it System.out.print("Enter a value for x: ")

That sentence doesn't show up at all in the output window. You can still enter in two values for the variables, but the strings and the result will not show up until the program is completely done executing.
357mag is offline   Reply With Quote