+ 2

Help me solve this prblm?

Help me in knowing what wrong did i did in this. https://code.sololearn.com/c3H2lSDVM5Tr/?ref=app

23rd Aug 2019, 8:36 AM
Piyush Srivastava
Piyush Srivastava - avatar
3 Antworten
+ 5
You may forgot to write access specifier with functions on line 6 & 14 which should be public. Also you don't need to write public interface Runnable{ void run(); } Remove these lines and it will work.
23rd Aug 2019, 8:44 AM
blACk sh4d0w
blACk sh4d0w - avatar
+ 2
Thank u
23rd Aug 2019, 8:47 AM
Piyush Srivastava
Piyush Srivastava - avatar
0
next experiment if (i==5) try { Thread.sleep(1000); } catch(InterruptedException e) { }
23rd Aug 2019, 10:50 AM
zemiak