• LinkedList Class

    LinkedList Class Example with Iterator

    In this blog, we will see how to LinkedList class work with Iterator class with hasNext() and next() method. In this blog, we will also see how to add data in first and last location of list using addFirst() and addLast() methods. These two function do not work in ArrayList class.   Let’s see Example […]

  • Iterator Class

    Iterator Class with iterator() Method

    In this blog, We will see how to fetch data from ArrayList Class using Iterator class using iterator() method. We will also see how to use hasNext() method for check data and next() method for store data in String class. In this blog, we will see display 5 country name in uppercase using ArrayList, Iterator, […]