Its not breaking a Loop (Java) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Its not breaking a Loop (Java)

I dont have Any soloution can someone help? Code: ------- https://code.sololearn.com/cX41Y2D9jRR7/?ref=app -------

12th Mar 2020, 5:50 AM
Booztay
Booztay - avatar
11 Answers
+ 3
Remove first line from your code because self define package will not work here. After removing that line working fine.
12th Mar 2020, 5:55 AM
A͢J
A͢J - avatar
+ 3
Booztay here in Sololearn Playground we can't take input at running time. So whatever you are getting in case 2 from the input it will not work.
12th Mar 2020, 6:06 AM
A͢J
A͢J - avatar
+ 2
Booztay one more thing you have given so much time for each thread. Just remove one 0 from your threads time and check.
12th Mar 2020, 6:12 AM
A͢J
A͢J - avatar
+ 2
Booztay Yes.
12th Mar 2020, 6:14 AM
A͢J
A͢J - avatar
+ 2
Booztay Yes you are right but check the output. It's giving execution timeout because of that time given in threads. So you have to give time as 100, 200, 300..
12th Mar 2020, 6:17 AM
A͢J
A͢J - avatar
+ 1
AJ Anant i just post my Code from here to got an answer, im compiling it in other App
12th Mar 2020, 5:58 AM
Booztay
Booztay - avatar
+ 1
AJ Anant i already Remove it
12th Mar 2020, 5:59 AM
Booztay
Booztay - avatar
+ 1
AJ Anant the Thread.sleep(); thingy?
12th Mar 2020, 6:13 AM
Booztay
Booztay - avatar
+ 1
AJ Anant ive used it so, user can read the description before the Randomazation start
12th Mar 2020, 6:14 AM
Booztay
Booztay - avatar
+ 1
AJ Anant ive been using it so, user can read the description before the Randomazation start
12th Mar 2020, 6:15 AM
Booztay
Booztay - avatar
+ 1
AJ Anant im compiling it in other app, i just post in here to get an answer, because im out of soloution
12th Mar 2020, 6:19 AM
Booztay
Booztay - avatar