---
title: "Discussion on \"Java Collections\" | Hashnode"
description: "Discussion on \"Java Collections\". Think of collections as containers to hold objects\n➤ a. List – Ordered, allows duplicates\n\nReal-world: List of users in a chat\n\njavaCopyEditList<String> users = new ArrayList<>();\nusers.add(\"Alice\");\nusers.add(\"Bob\");\n\n➤ b. Set – Unordered, no duplic..."
url: "https://hashnode.com/posts/java-collections/6876b9b460cfe1717ec8f00d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Java Collections](https://boggey-man.hashnode.dev/java-collections?utm_source=hashnode&utm_medium=feed)

Think of collections as containers to hold objects ➤ a. List – Ordered, allows duplicates Real-world: List of users in a chat javaCopyEditList<String> users = new ArrayList<>(); users.add("Alice"); users.add("Bob"); ➤ b. Set – Unordered, no duplic...

Jul 15, 2025 · 2 min read · boggey-man.hashnode.dev  
Read the article

## Written by

[suraj sunkara](https://hashnode.com/@BoggeyMan)

@BoggeyMan

  
[View profile](https://hashnode.com/@BoggeyMan)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
