Skip to main content

Java Collection Programs

ArrayList, HashMap, HashSet, TreeMap, Queue and related collection APIs.

1

Linked List Example in Java

Learn Linked List in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
2

Arraylist Example in Java

Learn ArrayList in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
3

Hashset Example in Java

Learn HashSet in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
4

Clear an Arraylist Example in Java

Learn Clear an Arraylist in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
5

Reversing an Arraylist Example in Java

Learn Reversing an ArrayList in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
6

Linked Hashset Example in Java

Learn Linked HashSet in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
7

Hashmap Example in Java

Learn HashMap in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
8

Set Value in Arraylist Example in Java

Learn Set Value in ArrayList in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
9

Linked Hashmap Example in Java

Learn Linked HashMap in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
10

Remove Element from Arraylist Example in Java

Learn Remove Element from ArrayList in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
11

Identity Hashmap Example in Java

Learn Identity HashMap in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
12

Treemap Example in Java

Learn TreeMap in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
13

Treeset Example in Java

Learn TreeSet in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
14

Finding Duplicates in Array using Treeset Example in Java

Learn Finding Duplicates in Array Using TreeSet in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
15

Hashtable Example in Java

Learn HashTable in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
16

Enumset Example in Java

Learn EnumSet in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
17

Enum Map Example in Java

Learn Enum Map in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
18

Wrapper Example in Java

Learn Wrapper in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
19

Un Modifiable Wrapper Example in Java

Learn Un Modifiable Wrapper in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
20

Iterator Interface Example in Java

Learn Iterator Interface in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
21

Sorted Map Interface Example in Java

Learn Sorted Map Interface in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
22

Sorted Set Interface Example in Java

Learn Sorted Set Interface in Java with explanation, complete source code, step-by-step walkthrough and sample output.

java collection programs
23

Java Stream API Example in Java

Introduction to the Java Stream API with filter, map, sorted and collect operations on a list of integers and strings, with sample output.

streams

Related Topics

Search tutorials