Iterator ListIterator

Collections Comparisons

You must be very strong in Java DS to write comparisons between various Collection classes. This tutorial gives you possible Java DS comparisons. Enumeration vs Iterator Iterator vs ListIterator Vector vs ArrayList Array vs ArrayList for vs foreach Hashtable vs HashMap Set vs HashSet Map vs HashMap HashMap vs TreeMap Comparable vs Comparator HashSet vs …

Collections Comparisons Read More »

Iterator vs ListIterator

You have seen the iteration of elements in the following examples earlier. 1. Using Enumeration interface. 2. Using Iterator interface. 3. Using ListIterator interface. Also you have seen the analogy of Enumeration vs Iterator. Differences between Enumeration, Iterator and ListIterator are very confusing for a Beginner. Understandability increases when placed at a single place. Towards …

Iterator vs ListIterator Read More »