Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Java
10.1k+ articles
Java Programs
2.1k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-ArrayList
140+ articles
java-stream
130+ articles
Java-Array-Programs
100+ articles
java-list
89 articles
java-LinkedList
62 articles
Java-Stream-programs
27 articles
Java-List-Programs
55 posts
Popular Articles
Recent Articles
Min and Max in a List in Java
Last Updated: 11 January 2023
Given an unsorted list of integers, find maximum and minimum values in it.Input : list = [10, 4, 3, 2, 1, 20]Output : max = 20, min = 1Input
...read more
Linked List
Java
Technical Scripter
java-LinkedList
Technical Scripter 2018
Java-List-Programs
DSA
How to Remove Duplicates from ArrayList in Java
Last Updated: 11 December 2018
Given an ArrayList with duplicate values, the task is to remove the duplicate values from this ArrayList in Java.Examples:Input: List = [1,
...read more
Java
Java-Collections
Java-ArrayList
java-LinkedHashSet
Java-List-Programs
How to Get ArrayList from Stream in Java 8?
Last Updated: 17 July 2024
Given a Stream, the task is to convert this Stream into ArrayList in Java 8. Examples:Input: Stream: [1, 2, 3, 4, 5]Output: ArrayList: [1,
...read more
Java
Java-ArrayList
java-stream
Java-Stream-programs
Java-List-Programs
Similar Topics
Java
10.1k+ articles
Java Programs
2.1k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-ArrayList
140+ articles
java-stream
130+ articles
Java-Array-Programs
100+ articles
java-list
89+ articles
java-LinkedList
62+ articles
Java-Stream-programs
27+ articles
Convert an ArrayList of String to a String Array in Java
Last Updated: 03 December 2021
In Java, as we all know ArrayList class is derived from the List interface. Here we are given an ArrayList of strings and the task is to con
...read more
Java
Technical Scripter
Java-Collections
Java-ArrayList
Technical Scripter 2018
Java-Array-Programs
Java-String-Programs
Java-List-Programs
Find first and last element of ArrayList in java
Last Updated: 25 August 2022
Prerequisite: ArrayList in Java Given an ArrayList, the task is to get the first and last element of the ArrayList in Java, Examples:Input:
...read more
Java
Technical Scripter
Java-Collections
Java-ArrayList
Technical Scripter 2018
Java-List-Programs
Program to Convert List to Map in Java
Last Updated: 19 June 2019
The List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List pres
...read more
Java
Technical Scripter
Java-Collections
java-list
java-map
Technical Scripter 2018
Java-List-Programs
Java-Map-Programs
Initialize an ArrayList in Java
Last Updated: 07 April 2025
ArrayList is a part of the collection framework and is present in java.util package. It provides us dynamic arrays in Java. Though it may be
...read more
Java
Technical Scripter
Java-ArrayList
Picked
Technical Scripter 2018
Java-List-Programs
Java Program to Convert an Array into a List
Last Updated: 24 December 2024
In Java, arrays and lists are two commonly used data structures. While arrays have a fixed size and are simple to use, lists are dynamic and
...read more
Java
Java-Arrays
Java Programs
Java-Array-Programs
Java-List-Programs
Implementing a Linked List in Java using Class
Last Updated: 04 January 2025
Pre-requisite:Linked List Data StructureLike arrays, Linked List is a linear data structure. Unlike arrays, linked list elements are not sto
...read more
Linked List
Java
Data Structures
Java-Class and Object
Java Programs
Java-List-Programs
DSA
Set to List in Java
Last Updated: 10 June 2022
Given a set (HashSet or TreeSet) of strings in Java, convert it into a list (ArrayList or LinkedList) of strings. In java, Set interface is
...read more
Misc
Java
Java-Collections
Java-ArrayList
java-treeset
java-hashset
java-LinkedList
java-stream
java-list
Java-Stream-programs
Java-List-Programs
Java-Set-Programs
Iterating over ArrayLists in Java
Last Updated: 04 June 2024
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
...read more
Java
Java-ArrayList
Java-List-Programs
Conversion of Array To ArrayList in Java
Last Updated: 26 October 2021
Following methods can be used for converting Array To ArrayList:Method 1: Using Arrays.asList() method Syntax: public static List asList(T..
...read more
Java
Java-Collections
Java-ArrayList
java-list
Java-Array-Programs
Java-List-Programs
Vector vs ArrayList in Java
Last Updated: 16 August 2024
ArrayList and Vectors both implement the List interface, and both use (dynamically resizable) arrays for their internal data structure, much
...read more
Java
Java-Collections
Java-ArrayList
java-list
Java-List-Programs
How to remove an element from ArrayList in Java?
Last Updated: 04 January 2025
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
...read more
Java
Java-Collections
Java-ArrayList
java-list
Java-List-Programs
Array vs ArrayList in Java
Last Updated: 24 March 2025
In Java, an Array is a fixed-sized, homogenous data structure that stores elements of the same type whereas, ArrayList is a dynamic-size, pa
...read more
Java
Java-Collections
Java - util package
Java-Arrays
Difference Between
Java-ArrayList
Java-Array-Programs
Java-List-Programs
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
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 !