Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Java-Functions
4.2K+ articles
Java - util package
1.6K+ articles
Java-Collections
1.1K+ articles
Java-ArrayList
154+ articles
java-stream
142+ articles
Java-List-Programs
57+ articles
Java-Stream-programs
27+ articles
java-list
95 posts
Recent Articles
Popular Articles
Java Program to Compute the Sum of Numbers in a List Using Recursion
Last Updated: 23 April 2023
ArrayList is a part of the Collection framework and is present in java.util package. It provides us with dynamic arrays in Java. Though, it may be slower than standard arr...
read more
Java
Java Programs
Picked
Java-Collections
java-list
Java Program to Combine Two List by Alternatively Taking Elements
Last Updated: 08 August 2022
A list is an ordered sequence of elements stored together to form a collection. A list can contain duplicate as well as null entries. A list allows us to perform index-bas...
read more
Java
Java Programs
Picked
Java-Collections
java-list
Iterate through List in Java
Last Updated: 03 June 2024
Lists in Java allow us to maintain an ordered collection of objects. Duplicate elements as well as null elements can also be stored in a List in Java. The List interface i...
read more
Java
Java Programs
Picked
Java-Collections
java-list
Java Program to Check Whether an Element Occurs in a List
Last Updated: 07 January 2021
The List Interface in Java represents an ordered collection or sequence. This Interface helps us control where to insert elements and also access elements through an integ...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Java-Collections
java-list
Java Program to Reverse a List
Last Updated: 12 September 2022
Reversing a list means after reversing the list, the first element should be swapped with the last element, the second element should be swapped with the second last eleme...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Java-Collections
java-list
Java Program to Concatenate Two List
Last Updated: 19 January 2021
Concatenating two lists means merging two lists into a single list.Consider the given lists:LIST 1LIST 2LIST AFTER CONCATENATIONThere are several methods to perform concat...
read more
Java
Java Programs
Picked
Java-Collections
java-list
Difference Between List and Set in Java
Last Updated: 29 April 2022
The List interface allows storing the ordered collection. It is a child interface of Collection. It is an ordered collection of objects in which duplicate values are allow...
read more
Java
Technical Scripter
Difference Between
Picked
Technical Scripter 2020
Java-Collections
java-set
java-list
Iterate List in Java using Loops
Last Updated: 21 June 2021
In this article, we are going to see how to iterate through a List. In Java, a List is an interface of the Collection framework. List can be of various types such as Array...
read more
Java
Java Programs
Picked
Java-Collections
java-list
How to Test Java List Interface Methods using Mockito?
Last Updated: 02 February 2022
Mockito is an open-source testing framework used for unit testing of Java applications. It plays a vital role in developing testable applications. Mockito is used to mock ...
read more
Java
java-list
java-advanced
When to use Array over a List?
Last Updated: 11 March 2024
Array: Array is a linear data structure that is the collection of similar data types. Arrays are static data structures with fixed sizes. Arrays are stored in the contig...
read more
Data Structures
Picked
DSA
Arrays
python-list
java-list
Interview-Questions
Conversion of a List to a Queue in Java
Last Updated: 25 January 2024
In this article, We will learn about how to convert a List to a Queue in Java using various methods.PrerequisiteQueue Interface in JavaList Interface in JavaMethods to Con...
read more
Java
Java Programs
Picked
Java-Collections
java-list
java-queue
Java Examples
How to Convert a LinkedHashSet into an Array and List in Java?
Last Updated: 15 February 2024
In Java, LinkedHashSet is a predefined class of Java that extends the HashSet and it implements the Set interface. It can be used to implement the doubly linked list of th...
read more
Java
Java Programs
Picked
Java-Arrays
java-list
java-LinkedHashSet
Java Examples
How to Convert a PriorityQueue into an Array, List, and Set in Java?
Last Updated: 16 February 2024
In Java, PriorityQueue is an implementation of the Queue interface. It means high-priority elements can be saved first compared to lower-priority elements in the queue, an...
read more
Java
Java Programs
Picked
Java-Arrays
java-priority-queue
java-set
java-list
Java Examples
Get Values with Unique Elements from a List in Java
Last Updated: 03 April 2024
In Java, we can write programs to get values with unique elements using loops, conditional statements, and string manipulation. The basic idea is to go through a set of nu...
read more
Java
Java Programs
java-list
How to Convert List of Lists to HashSet in Java?
Last Updated: 26 February 2024
In Java, Collections like lists, and sets play a crucial role in converting and manipulating the data efficiently. The Conversion of a List of Lists into a HashSet is main...
read more
Java
Java Programs
Picked
HashSet
java-hashset
java-list
Java Examples
1
2
3
4
5
6
7
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !