Promotion
CodeGym University
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
219 members
Leaderboard
Popular
New
Old
Oleksandr Miadelets
Java Collections
20 July 2018 8:53
ArrayList in pictures
Hi! Today's lesson about ArrayList will be both easier and harder than previous lessons. It will be more difficult because today we're going to look under the hood of ArrayList and study what happens during various operations. On the other hand, this lesson will have almost no code ...
Jesse Haniel
Java Collections
20 July 2018 9:40
Collections class in Java
Hi! In the past few lessons, we've made great progress in our mastery of ArrayList. However, so far we've only performed the simplest operations: remove, insert, and display. Of course, this doesn't cover the full list of tasks that developers must perform when working with ArrayList ...
Volodymyr Portianko
Java Collections
20 July 2023 7:30
How to remove an element from ArrayList in Java?
Hi! In the last lesson, we got acquainted with the ArrayList class, and learned how to perform the most common operations with this class. In addition, we pointed out several differences between an ArrayList and an ordinary array. But we skirted one topic, namely, how to delete elements from an ArrayList ...
Vasyl Malik
Java Collections
14 July 2022 10:29
Java LinkedList
Hi! All the latest lessons have been devoted to ArrayList. This data structure is very convenient and useful. It can handle plenty of tasks. But Java has lots of other data structures. Why? Above all, because the range of tasks is enormous, and the most efficient data structures are different for different tasks ...
Volodymyr Portianko
Java Collections
14 July 2022 8:58
Java ArrayList
Hi! In previous lessons, we did a deep dive into arrays and reviewed common examples of working with arrays. In general, arrays are super handy. And. as you've already noticed, you can do a lot with them :) But arrays do have a number of shortcomings ...
Milan Vucic
Java Collections
14 July 2022 11:00
HashMap: what kind of map is this?
Hi! Previously, we've studied data structures where the elements are stored as themselves. In an array or an ArrayList/LinkedList, we store some number of elements. But what if our task changes a little? Imagine the following task: create a list of 100 people that stores each person's name and passport number ...
John Dorian
Java Collections
10 December 2019 6:59
Stop writing loops! Top 10 best practices for working with collections in Java 8
As you know, our habits are second nature. And once you get used to writing for (int i = 0; i <......), no part of you wants to have to relearn this construct (especially since it is quite simple and understandable). However, loops are often...
Jesse Haniel
Java Collections
7 January 2025 14:02
Linked List Data Structure in Java
Different data structures are created for different purposes. You may know about ArrayList (if still not, we recommend you to read about it first). In this article, we are going to learn about LinkedList and to realize what this collection is good for. If you look into LinkedList Java 8 (or later version of the language)...
Alex Vypirailenko
Java Collections
12 February 2020 12:44
Map Interface in Java
The Java Map interface is a part of Java Collection framework, but it is not a subtype of the Collection interface. So it behaves in a different way compared to, say, Lists, or other collection Objects. Each element of Map represents...
Vasyl Malik
Java Collections
14 May 2020 13:06
TreeMap in Java
If you're reading this article, you are most likely familiar with the Map interface and where can appropriately be applied. If not, then come here. Today we'll talk about the features of TreeMap's implementation, and more specifically, how it differs from HashMap and how to use it correctly...
Vasyl Malik
Java Collections
13 May 2020 15:27
Data structures: stack and queue
Hi! Today we'll talk about something that is super important for any programmer: data structures. Wikipedia says: "A data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships...
Artem Divertitto
Java Collections
11 January 2025 9:22
ArrayList to Array Conversion in Java
Arrays are an extension of the Container class in Java and can be useful as a way to temporarily hold a set of primitive data types when the quantity of data is specifically known. But Arrays are static when created, which means that when you create one, you cannot change the number of items it holds...
Show more
1
2
3
4
Please enable JavaScript to continue using this application.