Micky Kr wrote:Good One...So How Many In Batch You Cover
Mohamed Sanaulla wrote:"ten" is not same as entering- 10. nextInt() expects 10 and not "ten".
And as far as the infinite loop is considered- success never becomes true, because there's an exception thrown, catch block tackles it and the loop continues. You can step through a debugger to check the behavior of the program
Campbell Ritchie wrote:Thank you, Soniya Ahuja