does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it.

ty

Re: how to do a basic system pause 80 80

Hi Everyone,

Please explain in detail, pause a thread or pause while waiting for input from user??

Richard West

Re: how to do a basic system pause 80 80

pause after reading user's input so that the user has a chance to read the screen before the program terminates

Re: how to do a basic system pause 80 80

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?

Re: how to do a basic system pause 80 80

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.