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

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

  • Object Class

    Object Class with toArray Method

    Object class is super class of all system define classes like Integer, Double, Float, String and many more. Object classes can store any types of data and then use easily. In this blog, we will see how to store Integer object data store in Object array using toArray() method.   Let’s see Example on Object […]

  • ArrayList Class

    ArrayList Class Simple Example

    In our last blog, we show how to use ArrayList class in java program. In this blog we will see simple ArrayList class example with Employee. How to add Employee class’s object into ArrayList. How to display Employee data using ArrayList using foreach concepts.   Let’s see Example on ArrayList Class   import java.util.*; class […]

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

  • Java Collection Classes

    Java collection is most important part in java language. In this blog we will see list of java collection classes. We also add java collection java programs and theory files.   List of Java Collection Classes List ArrayList LinkedList Set LinkedHashSet HashSet TreeSet Map LinkedHashMap HashMap TreeMap Table Hashtable Other Classes Enumeration Iterator Object   […]

  • Find Maximum number from 1-D Array

    Why we have to understand array? Answer: Logic of array Why array is most important? Answer: Structure and Simplicity   This is one small list of use of arrays in programming language. We can use arrays in our every steps of advance java.   In this blog, we work on array basic to advance level […]