Exercise: Use a HashSet

Let's go through what you’ve learned in this chapter.

We'll cover the following

This challenge is all about using a HashSet.

Problem statement

You have a list of numbers and need to print a list of unique numbers, with each number only printing once.

Coding challenge

Take some time to determine the best way to solve this problem. Here is some code to get you started, including the list of numbers.

Get hands-on with 1200+ tech skills courses.