• 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 […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS
  • LinkedList Class

    LinkedList Class V/S ArrayList Class

    In this blog, we will see how to LinkedList Class and ArrayList collection class different with each other.  Both classes can add data using add() method. But in this blog, we will also see addFirst() and addLast() method do not working in ArrayList class. We also see how to removeFirst() and removeLast() method do not […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS
  • java collection

    Java Collection: ArrayList

    ArrayList is one java collection class. We can store any type of object data in ArrayList. In this blog, we will see how to store Integer data in ArrayList Class, display ArrayList and use of ArrayList object data.   How to declare ArrayList Class? ArrayList<Generics> object = new ArrayList<Generics>(); Example: ArrayList<Integer> list1 = new ArrayList<Integer>(); […]

    Share and Enjoy

    • Facebook
    • Twitter
    • Delicious
    • LinkedIn
    • StumbleUpon
    • Add to favorites
    • Email
    • RSS