CodeGym University
Learning
Course
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Java Collections
Java Collections
144 members
Leaderboard
Popular
New
Old
Pavlo Plynko
Java Collections
9 January 2023 16:03
LinkedHashMap in Java
The LinkedHashMap class of the Collections framework is the Hashtable and LinkedList implementation of the Map interface. It stores its entries in a Hashtable and uses a doubly-linked list internally to maintain the insertion order. This LinkedList defines...
Volodymyr Portianko
Java Collections
6 May 2022 11:59
LinkedHashSet in Java
Speaking of the LinkedHashSet class in Java, we need to mention that it implements the Set interface. LinkedHashSet creates a collection that stores elements in a hash table but maintains the insertion order of elements unlike its HashSet counterpart...
Oleksandr Miadelets
Java Collections
9 September 2020 10:45
Min Heap in Java with Examples
Before we get started, it is assumed that you know about a Binary Tree (in a binary tree, each node stores a key greater than all the keys in its left subtree and less than all the keys in its right subtree). Whereas, a Binary Heap is a complete binary tree which satisfies either the min-heap or max-heap ordering property...
Artem Divertitto
Java Collections
5 October 2020 5:48
Max Heap in Java
In Java, there are many different types of data structures. The heap is based on a tree structure called a binary tree. A binary tree consists of nodes, each of which can have a maximum of 2 child nodes. A binary tree consists of a parent node which can have...
Pavlo Plynko
Java Collections
27 October 2021 7:18
ArrayList removeAll() method in Java
The ArrayList removeAll() method in Java doesn’t remove all elements from proper ArrayList, as its name might suggest. If you need this operation, use the ArrayList clear() method. Unlike clear(), the removeAll() method removes all items from a given list that...
Artem Divertitto
Java Collections
18 November 2020 10:49
Queue poll() Method in Java with Examples
Just like the name implies, Queue is a common data structure in Java following the First In First Out (FIFO) insertion order. You can easily imagine it as a queue at a grocery store. The sooner you enter, the sooner you leave. It means the element...
Aditi Nawghare
Java Collections
22 February 2023 16:27
Enhanced for loop in Java
If you're a Java developer, you've probably come across a situation where you need to iterate over an array or a collection. In the past, this required writing a lot of boilerplate code to set up a loop and iterate over the elements. However, Java has introduced an enhanced for loop...
Oleksandr Miadelets
Java Collections
18 May 2023 12:18
TreeSet in Java
Java provides a vast set of data structures for efficiently working with element collections. One such data structure is TreeSet, an implementation of a red-black tree in Java...
Jesse Haniel
Java Collections
26 September 2023 9:19
How to Sort a List in Java
Sorting arrays and lists is one of the most important problems of programming in general. That’s why it’s been solved in different ways a long time ago...
Artem Divertitto
Java Collections
6 June 2022 11:46
Java Vector
Probably you've already come across arrays in Java, and you know that one of their main drawbacks is size constancy. Once you've created an array of a certain size, you can't change that later. There are several Java Collection framework classes in the Java language that solve this problem...
Vasyl Malik
Java Collections
22 September 2023 13:50
Java Tuple
Tuple are fundamental data structures found in many programming languages. In this article, we will delve into what tuples are, their various use cases, and explore how they can be...
1
2
3
4
Please enable JavaScript to continue using this application.