Junior — Senior
Counting and displaying the number of repetitions of numbers in an array
livecode
Task condition
Given an array of integers. You need to print to the console for each number that appears more than once, a line of the form: number + " Hello = " + the count of its repetitions. The output should be sorted in ascending order of the numbers themselves.
List<Integer> numbers = List.of(1, 2, 5, 4, 4, 5, 2, 3, 6, 5);