ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How can we access elements of a collection?

We can access the elements of a collection using the following ways:
1.Every collection object has get(index) method to get the element of the object. This method will return Object.
2.Collection provide Enumeration or Iterator object so that we can get the objects of a collection one by one.
Related Posts Plugin for WordPress, Blogger...
Flag Counter