dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: All
Sep 27, 2000

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


A Problem in Using Enumeration

Once you are finished iterating through the values of an Object implementing the Enumeration interface, the next time you try to use
 hasMoreElements()
it will return false. Many developers are not aware of this, which leads to blind usage of Enumeration, leading to errors in the code and sometimes in the logic. The developer has to follow a learning curve to figure it out.
Mahesh Chulet
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Thanks for your registration, follow us on our social networks to keep up-to-date