how can i make the system (execution process )wait for some periode of time
akhilchandranms 0 Newbie Poster
Recommended Answers
Jump to PostYou can sleep the current thread by using Thread's sleep method
http://docs.oracle.com/javase/6/docs/api/java/lang/Thread.html#sleep%28long%29ps: I assume you know that your constructor will loop recursively until you run out of memory?
Jump to PostI think you should try to compile and execute that code before assuming you have finished!
All 7 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
JeffGrigg commented: Direct, simple and correct. Thanks! +0
stultuske 1,116 Posting Maven Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
akhilchandranms 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
JeffGrigg commented: Yes. And we know why. ;-> +6
nira9 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.