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
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
DSA
22.5k+ articles
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Linked Lists
300+ articles
Java-ArrayList
140+ articles
java-list
89 articles
Java-List-Programs
55 articles
java-LinkedList
62 posts
Popular Articles
Recent Articles
How to Iterate LinkedList in Java?
Last Updated: 07 January 2021
LinkedList in java is basically a part of the collection framework present in java.util package. It is the implementation of the LinkedList
...read more
Java
Java-Collections
Java Programs
java-LinkedList
Picked
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
LinkedList listIterator() Method in Java
Last Updated: 18 December 2024
In Java, the listIterator() method of the LinkedList class returns a ListIterator that allows us to iterate over the elements of the list.Ex
...read more
Java
Java-Collections
java-LinkedList
Similar Topics
DSA
22.5k+ articles
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Linked Lists
300+ articles
Java-ArrayList
140+ articles
java-list
89+ articles
Java-List-Programs
55+ articles
LinkedList size() Method in Java
Last Updated: 31 March 2023
The Java.util.LinkedList.size() method is used to get the size of the Linked list or the number of elements present in the linked list.Synta
...read more
Java
Java-Collections
Java - util package
Java-Functions
java-LinkedList
LinkedList addFirst() Method in Java
Last Updated: 16 December 2024
In Java, the addFirst() method of LinkedList, adds elements at the beginning of the list. All the existing elements moved one position to th
...read more
Java
Java-Collections
java-LinkedList
LinkedList remove() Method in Java
Last Updated: 20 December 2024
In Java, the remove() method of the LinkedList class removes an element from the list, either by specifying its index or by providing its va
...read more
Java
Java-Collections
java-LinkedList
LinkedList get() Method in Java
Last Updated: 16 December 2024
In Java, the get() method of LinkedList is used to fetch or retrieve an element at a specific index from a LinkedList.Example 1: Here, we us
...read more
Java
Java-Collections
java-LinkedList
LinkedList add() Method in Java
Last Updated: 18 December 2024
In Java, the add() method of the LinkedList class is used to add an element to the list. By default, it adds the element to the end of the l
...read more
Java
Java-Collections
java-LinkedList
List to Set in Java
Last Updated: 11 December 2018
Given a list (ArrayList or LinkedList), convert it into a set (HashSet or TreeSet) of strings in Java.Method 1 (Simple)We simply create an
...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
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
Level order traversal line by line (Using One Queue)
Last Updated: 12 February 2025
Given a Binary Tree, the task is to print the nodes level-wise, each level on a new line.Example:Input:Output:12 34 5Table of Content[Expect
...read more
Tree
java-LinkedList
tree-level-order
DSA
Java.util.LinkedList.poll(), pollFirst(), pollLast() with examples in Java
Last Updated: 10 December 2018
Java's Linked list class offers a function that allows a "Queue Based" working called poll(). This function not only returns deletes the fir
...read more
Linked Lists
Java
Java-Collections
Java - util package
Java-Functions
java-LinkedList
ArrayList and LinkedList remove() methods in Java with Examples
Last Updated: 19 January 2022
List interface in Java (which is implemented by ArrayList and LinkedList) provides two versions of remove method.boolean remove(Object obj)
...read more
Java
Java-Collections
Java - util package
Java-Functions
Java-ArrayList
java-LinkedList
ArrayList vs LinkedList in Java
Last Updated: 24 August 2023
An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. Howe
...read more
Java
Java-Collections
Difference Between
Java-ArrayList
java-LinkedList
java-list
LinkedList in Java
Last Updated: 03 January 2025
Linked List is a part of the Collection framework present in java.util package. This class is an implementation of the LinkedList data struc
...read more
Java
Java-Collections
Java - util package
java-LinkedList
java-list
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
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 !