Skip to content
UPEEC

Collections Framework

Lists, sets, maps and queues — Java's standard data structures.

Easy
Comments 0

The java.util collections share common interfaces — List, Set, Map, Queue — so you can swap implementations without changing the code that uses them:

List<Integer> readings = new ArrayList<>();
Set<String> tags = new HashSet<>();
Map<String, Integer> pins = new HashMap<>();

Sub-topics (2)

HashMap

Key–value storage with constant-time average lookups using hashing.

Intermediate♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.