Page 50 - Abstract Class, Interface & Struktur Data
P. 50

Java Iterator












             •        An Iterator is an object that can be used to loop through





                      collections, like ArrayList and HashSet. It is called an




                      "iterator“ because "iterating" is the technical term for





                      looping.






             •        To use an Iterator, you must import it from the java.util





                      package.
   45   46   47   48   49   50   51   52   53   54   55