Promotion
CodeGym University
Java FullStack
Learning
Courses
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
290 members
Leaderboard
Popular
New
Old
Vasyl Malik
Java Collections
November 23, 2023 at 3:09 PM
KeySet method in java.util.Map
If you need to get all the keys that your Map contains, you can use the really handy java.util.HashMap.keySet() method. In this article, we will explain how it works. As you know, the HashMap class implements the Map...
Milan Vucic
Java Collections
January 6, 2025 at 1:15 PM
Java Stack
Stack in Java usually means the class from Collection Framework that implements the List interface. It works on the principle of the Stack data structure, which is used to organize one of the types of memory. Also it could be the part of memory to keep data, In this article we will...
Milan Vucic
Java Collections
November 18, 2020 at 11:44 AM
Sublist() Method in Java: ArrayList and List
The Collections Framework is a very popular component in Java API. List interface and ArrayList class are probably the most important tools in the Collections Framework. subList is a method in the List interface that lets you create...
Artem Divertitto
Java Collections
December 21, 2021 at 12:14 PM
Java ArrayList addAll() method
If you need to add all the elements of one ArrayList () collection to another, you can use the addAll() method of the Java ArrayList class. In this article, I’m going to explain how this method works and provide some code examples...
Volodymyr Portianko
Java Collections
March 4, 2023 at 11:57 AM
HashMap entrySet() Method in Java
What is the entrySet() method in Java? The “HashMap” class provides the java.util.HashMap.entrySet() method in Java. It is used to create and then return a ‘set’...
Milan Vucic
Java Collections
January 2, 2025 at 2:40 PM
How to iterate a Map in Java
In this post, we will learn different ways to iterate a Map in Java. Some of its common ways and how to use those with the help of examples. Before getting started, we assume you understand interfaces and maps in Java. However, here’s a quick recap for you...
Alex Vypirailenko
Java Collections
February 11, 2025 at 11:17 AM
Java List
The Java Collection Framework contains very useful interfaces and classes that implement them for working with data structures. It can be said that this is one of the most important JDK frameworks. The List interface is very popular...
Volodymyr Portianko
Java Collections
December 22, 2024 at 7:29 AM
HashMap computeIfAbsent() method in Java
Java 8, as many of us know, introduced the Stream API. This is a very useful toolkit, but it has a drawback, it does not include Maps. However, Java 8 added several useful methods to the Map interface itself to reduce the amount of "bad" code...
Pavlo Plynko
Java Collections
December 27, 2024 at 8:18 AM
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...
Aditi Nawghare
Java Collections
November 12, 2019 at 11:28 AM
Java Stack 101: Delving into the Stack Class
he Stack in Java is a data structure, much like a queue, array, linked list, or tree. Where it differs from the others is that the Java Stack is based on the Last In, First Out (LIFO) principle. What this means is that when you use the two commands to add and remove an element from the stack...
Jesse Haniel
Java Collections
February 9, 2025 at 10:47 AM
Java Set
Set is an interface in the Java Collection Framework. You can use Java Set to implement unordered collections with unique elements. In this article, we are going to look at this interface and its implementations...
Pavlo Plynko
Java Collections
January 9, 2023 at 4:03 PM
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...
Show more
1
2
3
4
Please enable JavaScript to continue using this application.