kokokok kokokok - 5 months ago 37
Java Question

how to do a system pause in java for debugging?

Is there any functionality in Java for pausing the program like

does in C++?


Doing debugging is best done with a debugger, NetBeans (what you seem to be using if I look at other questions you have asked) has one. Just click in the left margin of an editor window to set a breakpoint and run the debugger. Program execution will stop at the breakpoint and you can have a look at the current state of variables, or step through the program line by line.