does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it.
ty
Hi Everyone,
Please explain in detail, pause a thread or pause while waiting for input from user??
Richard West
pause after reading user's input so that the user has a chance to read the screen before the program terminates
If you need something like that your architecture is wrong :)
Commandline programs are executed from a shell, so the output remains visible if the user wants it. If not he'll likely have it redirected to a file and why should you force him to look at something he doesn't want to see?
Hi everyone,
Here is a link with some code
http://www.rgagnon.com/javadetails/java-0145.html
do not forget to run your method in a separate thread other from the main thread
Here is another link to pause and resume the console printing of huge data
http://forum.java.sun.com/thread.jspa?threadID=501758&messageID=2372877
I hope this helps you
Yours Sincerely
Richard West
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.