Java Collections Framework - Practice Programs
Navigation: Main Tutorial Index | Chapter Guide
This folder contains solutions for all 30 practice exercises.
javac 01-ArrayListStudentNames.java
java ArrayListStudentNames
ArrayList Student Names
ArrayList Add, Update, and Remove
ArrayList Size
ArrayList Contains
LinkedList Insert at Both Ends
Remove Duplicates Using HashSet
LinkedHashSet Insertion Order
TreeSet Sorted Order
HashMap Student IDs
Retrieve HashMap Value by Key
ArrayList Ascending Sort
ArrayList Descending Sort
Second Largest ArrayList Element
ArrayList Element Frequency
Word Frequency Using HashMap
Remove Even ArrayList Elements
Merge ArrayLists
Common ArrayList Elements
Convert Array to ArrayList
Traverse LinkedList with Iterators
Comparable Student Sort
Comparator Student Sort
Stack Using ArrayDeque
Queue Using LinkedList
Priority Queue Tasks
HashMap Word-Frequency Counter
Employee Management System
Browser History Using Deque
LRU Cache Using LinkedHashMap
HashMap Custom Key