Question: Support you have an ArrayList containing random integers. These integers can be any number, and each integer can appear more than once. For example, [2,
Support you have an ArrayList containing random integers. These integers can be any number, and each integer can appear more than once. For example, [2, 19, 21, 19, 21, 1, 3, 3, 6, 21, .....]
Your job is to write a method called findEvenFrequentNumbers(ArrayList
e.g.
list = [2, 19, 21, 19, 21, 1, 3, 3, 6, 21], should return [3, 19]
list = [3, 3, 3, 1, 2, 2, 2, 2, 2], should return []
list = [1, 1, 1, 1, 1], should return [1]
Note that you need to provide a class with the main function and also the imports.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
