0
Hey guys please anybody tell why this while loop not works on sololearn app but it works on other apps like javanide??
2 Answers
+ 2
It works but It's an infinite loop.
Sololearn playground is not interactive. on no input, it raise exception.
edit:
RAGHUKUMAR SURA
instead of while(true), use while(sc.hasNext()). then it works fine.
hope it helps..