In the previous lesson, you learned about the basics of Map
. In this lesson, you’ll master the most common operations you can apply to it. You’ll use different strategies to retrieve a value linked to a given key. You’ll get the keys and the values in an instance of a Map
. Finally, you will get its size, inquire about its entries’ properties, and filter its elements according to their characteristics by reusing the same methods you saw for List
and Set
. In the capstone, you will apply these operations to extract the book information from a CSV file and create your library’s book collection.
Consider the program to track the exam registration that you are implementing. Imagine you now need to retrieve the students who have enrolled for a given exam session.