Skip to content

Tag Archives: Java-Collections

To replace an element in Java ArrayList, set() method of java.util. An ArrayList class can be used. The set() method takes two parameters-the indexes of… Read More
ArrayList is a resizable array. It is under the java package java.util. It gives dynamic arrays in Java. ArrayList is useful in programs where a… Read More
remove() method is used to remove elements from a collection. It removes the element at the specified position in this list. Shifts any subsequent elements… Read More
ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java. In order to convert… Read More
Considering a string object that contains the student name and roll number separated by a comma, and each student contains the name and roll number… Read More
Java ArrayList is a resizable array, which can be found in java.util package. We can add or delete elements from an ArrayList whenever we want,… Read More
The remove(int index) method present in java.util.ArrayList class removes the element at the specified position in this list and shifts any subsequent elements to the… Read More
The array is a linear data structure containing elements whose size is defined at the time of creation and can hold both object and primitive… Read More
The Collection interface is a member of the Java Collections Framework. It is a part of java.util package. It is one of the root interfaces… Read More
The Java.lang.Cloneable interface is a marker interface. It was introduced in JDK 1.0. There is a method clone() in the Object class. Cloneable interface is… Read More
The ConcurrentSkipListMap class is a member of the Java Collections Framework. It was introduced in JDK 1.6, it belongs to java.util.concurrent package. The ConcurrentSkipListMap is… Read More
A PriorityQueue is used when the objects are supposed to be processed based on the priority. It is known that a Queue follows the First-In-First-Out… Read More
The TransferQueue interface is a member of the Java Collections Framework. It was introduced in JDK 1.7, it belongs to java.util.concurrent package. The TransferQueue is… Read More
The Serializable interface is present in java.io package. It is a marker interface. A Marker Interface does not have any methods and fields. Thus classes… Read More
The Collections class is used as a data structure to manage the data. We can add, remove, fetch, and update the data in the List,… Read More

Start Your Coding Journey Now!