© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
M. IndenJava Challengeshttps://doi.org/10.1007/978-1-4842-7395-1_7

7. Basic Data Structures: Lists, Sets, and Maps

Michael Inden1  
Zurich, Switzerland

In the Collections framework, lists, sets, and maps as key-value stores are implemented by so-called container classes . They manage objects of other classes. The interfaces List<E>, Set<E>, and Map<K,V> from the package java.util serve as the basis for the container classes. They store object references. Thus, processing primitive types is only possible if they are converted to a wrapper object (such as Byte, Integer, or Double). This is done automatically by the auto-boxing/unboxing implicit since Java ...

Get Java Challenges: 100+ Proven Tasks that Will Prepare You for Anything now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.