A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Joined: Nov 25, 2004
Sep 16, 2005 04:03:00
What's the best way to add 10 second delay withing main () if not using threading?
Joined: Mar 22, 2005
Sep 16, 2005 04:07:00
will do that even in a single-threaded application.
Ping & DNS, my free Android app for network diagnostics
Joined: Sep 11, 2005
Sep 16, 2005 04:25:00
Thread.sleep(10000) will do. sleep() method is static in Thread class and it causes the current thread to sleep for the specified number of milli-seconds.
keep smilin :: sravan<br /><a href="http://sravanpens.blogspot.com" target="_blank" rel="nofollow">I scribble here</a>
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Advice sought on Automation approach...
Log files: Websphere
Web services book for beginners
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013