Java Collection Framework Iterator

Java examples for Collection Framework:Iterator

Description

Click the following links for the tutorial for Collection Framework and Iterator.

  1. Java Collection Iterate through a Collection via ArrayList with Iterator
  2. Implement Iterator interface
  3. Iterate through a Collection using Iterator
  4. Remove an element from Collection using Iterator
  5. Check whether the given Iterator contains the given element.
  6. wrap Iterator as Iterable
  7. size of Iterator
  8. Iterator to List


  9. Iterator to Set
  10. iterator As Enumeration
  11. Adds all the items in iterator to collection .
  12. Exposes iterator as an Iterable .
  13. Creates an Iterator for iterating over the lines of a text file.
  14. Counts the number of items in the iterator by looping through it.
  15. Returns the given iterator's first element or null if no element found.
  16. Returns the iterator's n:th item from the end of the iteration.


  17. Returns the given iterator's last element.
  18. Returns the given iterator's last element or null if no element found.
  19. Returns the given iterator's single element.
  20. Returns the given iterator's single element or null if no element found.
  21. equals Iterator
  22. empty Iterator
  23. Limits an iterator to a given count.
  24. Converts an array to an iterator of objects.
  25. Converts a string to an iterator of characters.
  26. Fills an array with the contents of an iterator.
  27. one Element Unmodifiable Iterator
  28. unmodifiable Iterator
  29. Iterator to Iterable
  30. Helper method for printing the content from an Iterator.
  31. Turns an iterator into a list.
  32. Gets a list based on an iterator.