About 222,000 results
Open links in new tab
  1. Iterator (Java Platform SE 8 ) - Oracle

    Iterators allow the caller to remove elements from the underlying collection during the iteration with well-defined semantics. Method names have been improved. This interface is a member …

  2. Java Iterator - GeeksforGeeks

    Dec 20, 2024 · Iterators in Java are used in the Collection framework to retrieve elements one by one. It is a universal iterator as we can apply it to any Collection object. Using an Iterator, we …

  3. Java Iterator - W3Schools

    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 …

  4. Java | Implementing Iterator and Iterable Interface

    Jul 17, 2018 · To implement an iterable data structure, we need to: Create an Iterator class which implements Iterator interface and corresponding methods. We can generalize the pseudo code …

  5. A Guide to Iterator in Java - Baeldung

    Jan 8, 2024 · In this tutorial, we’re going to review the simple Iterator interface to learn how we can use its different methods. We’ll also check the more robust ListIterator extension which …

  6. How to use Iterator in Java - Iterator Examples with List, Set, …

    Jul 18, 2024 · Java iterator interface explained. The complete guide to use iterator in Java with various code examples: iterate list, iterate set, iterate map, iterate queue, remove elements, etc.

  7. Java Iterator: A Complete Guide with Examples

    Dec 20, 2024 · What is Java Iterator? An Iterator in Java is an object that provides a way to access elements of a collection sequentially without exposing the underlying collection’s …

  8. Difference between Java Enumeration and Iterator

    Jun 4, 2009 · Looking at the Java API Specification for the Iterator interface, there is an explanation of the differences between Enumeration: Iterators allow the caller to remove …

  9. Iterator in Java with Example - Java Guides

    In this article, we will discuss how to use the Iterator interface in Java to iterate over collections such as ArrayList, LinkedList, and HashSet. We will cover the basics of using an Iterator, …

  10. Iterator (Java SE 11 & JDK 11 ) - Oracle

    Iterators differ from enumerations in two ways: Iterators allow the caller to remove elements from the underlying collection during the iteration with well-defined semantics. Method names have …

  11. Some results have been removed
Refresh