Where is the fault? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Where is the fault?

This thread.sleep code does not work as it should. Where is the fault? https://code.sololearn.com/c6136pCw4uFX/?ref=app

11th Aug 2019, 8:58 AM
Malebu
Malebu - avatar
3 Answers
+ 2
thanks guys
11th Aug 2019, 10:35 AM
Malebu
Malebu - avatar
+ 1
There is no problem with the code and make that class as thread class. Run it in other ide
11th Aug 2019, 9:58 AM
pavan kumar
pavan kumar - avatar
+ 1
SoloLearn sends the program result to the user after the program ends, so you cannot expect to see a pause between the output lines
11th Aug 2019, 10:34 AM
zemiak