Skip to content

Tag Archives: Java-ArrayList

Given an array arr[] consisting of N integers and an integer K, the task is to print all possible unique quadruplets (arr[i], arr[j], arr[k], arr[l])… Read More
Since Vector class and ArrayList class both are part of Java Collections, ie Collection framework, so both of these classes can use methods available to… Read More
Enumerations serve the purpose of representing a group of named constants in a programming language. Enums are used when we know all possible values at… Read More
ArrayList is part of the collection framework. It is a List and implements the java.util.list interface. ArrayList is a better alternative to Arrays, especially if… Read More
ArrayList class in Java is basically a resizeable array i.e. it can grow and shrink in size dynamically according to the values that we add… Read More
ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java. Though, it may be… Read More
Converting String to ArrayList means each character of the string is added as a separator character element in the ArrayList. Example: Input: 0001 Output: 0… Read More
It is the implementation class of List Interface. It allows duplicates objects/elements and as well as maintains the insertion order. You can get the element… Read More
ArrayList is a resizable array implementation in java. ArrayList grows dynamically and ensures that there is always a space to add elements. The backing data… Read More
ArrayList class is a re-sizeable array that is present in java.util package. Unlike the built-in arrays, ArrayList can change their size dynamically where elements can… Read More
ArrayList class in Java is basically a resize-able array i.e. it can grow and shrink in size dynamically according to the values that we add… Read More
ArrayList class in Java is basically a resize-able array i.e. it can grow and shrink in size dynamically according to the values that we add… Read More
Shuffling means changing the positions of ArrayList elements randomly. After shuffling, they will be in different order.  Following is the example of Shuffling ArrayList elements.… Read More
ArrayList is a resizable-array of the list interface. It provides the methods that can be used to manipulate the size of the array whenever required.… Read More
Data Structures are a boon to everyone who codes. But is there any way to convert a Data Structure into another? Well, it seems that… Read More