+ 1
What is the NoSuchElement is this an error???
2nd year.
4 odpowiedzi
+ 4
It is happened when no more element remains typically in loops and list
+ 6
Yes .in Java it is a Runtime exception i.e. it occurs at the execution time.
While accessing the contents of a collection, array or other objects using the accessor methods of an Enumeration, Iterator or, tokenizer, such as next() or nextElement(), if you try to get the elements from an empty object, or if you try to get the next element after reaching the end of the object (collection, array, or other) a NoSuchElementException is generated.
+ 4
Java or python, please put relevant tag
+ 1
Java sorry, beginner