View Single Post
  #2 (permalink)  
Old 08-07-2007, 07:36 PM
goldhouse goldhouse is offline
Senior Member
 
Join Date: Mar 2007
Posts: 136
goldhouse is on a distinguished road
Can You please eloborate the situation ?
In the Java Doc of Enumeration Class it says
Code:
nextElement public Object nextElement() Returns the next element of this enumeration if this enumeration object has at least one more element to provide. Returns: the next element of this enumeration. Throws: NoSuchElementException - if no more elements exist.
So If you call nextElement without checking hasmoreElements you will get this exception Avoid this you will get the problem out
Reply With Quote