A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
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 networking tools app
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>
Log files: Websphere
Advice sought on Automation approach...
Web services book for beginners
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014