...
/Free Response Question 1: Removing Duplicates From an ArrayList
Free Response Question 1: Removing Duplicates From an ArrayList
In this exercise, you'll remove duplicates from an ArrayList type object.
We'll cover the following...
Background
Suppose we have a bucket of colorful balls. Your task is to make sure that no ball of the same color is repeated. For example, if there are:
- 2 red balls: đź”´, đź”´
- 2 green balls: 🟢, 🟢
- 1 blue