943,748 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 42660
  • Java RSS
Apr 4th, 2005
0

how to do a basic system pause

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

ty
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
SyLk is offline Offline
27 posts
since Oct 2004
Apr 4th, 2005
0

Re: how to do a basic system pause

Hi Everyone,

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

Richard West
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Apr 4th, 2005
0

Re: how to do a basic system pause

pause after reading user's input so that the user has a chance to read the screen before the program terminates
Reputation Points: 10
Solved Threads: 0
Light Poster
SyLk is offline Offline
27 posts
since Oct 2004
Apr 4th, 2005
0

Re: how to do a basic system pause

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?
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Apr 4th, 2005
0

Re: how to do a basic system pause

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.jsp...sageID=2372877

I hope this helps you

Yours Sincerely

Richard West
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: can I invoke dos commands thru Java?
Next Thread in Java Forum Timeline: Confusion with constructors





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC