> For the complete documentation index, see [llms.txt](https://codewithmeiy.gitbook.io/core-java/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codewithmeiy.gitbook.io/core-java/test-your-knowledge/collections.md).

# Collections

1. **Introduction to ArrayList**
   * Description: Create an ArrayList of integers, add elements to it, and print its contents.
2. **Introduction to LinkedList**
   * Description: Create a LinkedList of strings, add elements to it, and print its contents.
3. **Introduction to HashSet**
   * Description: Create a HashSet of strings, add elements to it, and print its contents.
4. **Introduction to HashMap**
   * Description: Create a HashMap with integer keys and string values, add elements to it, and print its contents.
5. **Iterating Over a Collection**
   * Description: Iterate over elements in a collection (ArrayList, LinkedList, HashSet, etc.) and print each element.
6. **Removing Elements from Collection**
   * Description: Remove specific elements from a collection (ArrayList, LinkedList, HashSet, etc.) and print the modified collection.
7. **Checking Element Existence**
   * Description: Check if a specific element exists in a collection (ArrayList, LinkedList, HashSet, etc.) and print the result.
8. **Finding Maximum Element**
   * Description: Find the maximum element in a collection (ArrayList, LinkedList, HashSet, etc.) and print it.
9. **Finding Minimum Element**
   * Description: Find the minimum element in a collection (ArrayList, LinkedList, HashSet, etc.) and print it.
10. **Sorting Elements in Collection**
    * Description: Sort elements in a collection (ArrayList, LinkedList, HashSet, etc.) and print the sorted collection.
11. **Implementing Custom Object Sorting**
    * Description: Create a custom class (e.g., Student) with multiple attributes and implement Comparable or Comparator interface to enable sorting of objects based on specific attributes.
12. **Implementing Stack**
    * Description: Implement a stack data structure using collections (ArrayList or LinkedList) and perform push and pop operations.
13. **Implementing Queue**
    * Description: Implement a queue data structure using collections (LinkedList) and perform enqueue and dequeue operations.
14. **Implementing Priority Queue**
    * Description: Implement a priority queue data structure using collections (PriorityQueue) and perform insert and remove operations based on priority.
15. **Performing Set Operations**
    * Description: Perform set operations (union, intersection, difference) on two sets using collections (HashSet).
16. **Performing Map Operations**
    * Description: Perform map operations (merge, compute, iterate) on a map using collections (HashMap).
17. **Implementing TreeMap**
    * Description: Implement a tree map data structure using collections (TreeMap) and perform operations like insertion, deletion, and traversal.
