0
Why does my program show No element exception...????
The program is incomplete.... though I tried to excite it... but it shows the exception.... https://code.sololearn.com/cYBuNu5jcOZA/?ref=app
2 Réponses
0
Because the Scanner 'myNish' has no elements, so calling nextFloat gives a NoSuchElementException. In code playground all inputs have to be given at the start.
0
Tq.... finally worked out.......