SyntaxFix
Write A Post
Hire A Developer
Questions
As per java documentation definition of Thread.sleep is :
Thread.sleep(t); where t => time in millisecons to sleep
If you want to sleep for 1 second you should have :
Thread.sleep(1000);