Does anyone know the Java command for sleep(), as in to delay program execution?
Java sleep command
Started by gamechampionx, Dec 25 2004 04:29 AM
4 replies to this topic
Sponsor:
#5 Moderators - Reputation: 1666
Posted 25 December 2004 - 08:08 PM
There is always at least one thread (actually, there basically are always at least two that I can think of...) By writing Thread.sleep() you are asking the Thread class for its static method 'sleep', which will figure out which thread is running and make it sleep.






