About Thread.sleep error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

About Thread.sleep error

Guys this code works for the Intelligence idea but here it gives an error about Thread.sleep();

25th Jul 2019, 2:16 PM
Vigen
Vigen - avatar
2 Answers
+ 12
Becz you cannot use try catch Another way to sleep threads using SystemClock.sleep(); With this you do not need to use try catch.
25th Jul 2019, 3:09 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
0
I was used Interrupted Exception and it works now )
25th Jul 2019, 3:10 PM
Vigen
Vigen - avatar