wood burning stoves*
The moose likes Beginning Java and the fly likes system pause Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "system pause" Watch "system pause" New topic
Author

system pause

Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
hi,
is it possible somehow to stop method execution for a while and than continue with the proceeded?
thank you
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Andrew Lit:
hi,
is it possible somehow to stop method execution for a while and than continue with the proceeded?
thank you

Yes. Take a look at Thread.sleep().


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: system pause