How do I make the program wait before it works | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I make the program wait before it works

how do I make the program stop and continue after a few seconds

23rd Apr 2017, 8:51 AM
Nes Denon
Nes Denon - avatar
4 Answers
+ 5
in java :- You need to use da Thread.sleep() call: - ex: Thread.sleep(1000); 1000 is the number of milliseconds that da program will pause. try { Thread.sleep( 1000); } catch (InterruptedException ex) { Thread.currentThread().interrupt }
23rd Apr 2017, 9:29 AM
Don MTY
Don MTY - avatar
0
Threading.Thread.Sleep(milliseconds);
23rd Apr 2017, 9:27 AM
Eldar Bakerman
0
The tag is C#
23rd Apr 2017, 9:29 AM
Eldar Bakerman
0
thx😊
13th May 2017, 8:50 AM
Nes Denon
Nes Denon - avatar