does java have a ' system ("PAUSE") ' like c++....if so what is the syntax to do it.
Please explain in detail, pause a thread or pause while waiting for input from user??
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?
Here is a link with some code
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
I hope this helps you