Start Like This --> public int[] frequency(Scanner scanner) { return new int[0];
ID: 3584498 • Letter: S
Question
Start Like This --> public int[] frequency(Scanner scanner)
{
return new int[0];
}
Given a Scanner constructed with a String containing a stream of integers in the range of 0..10 (like quiz scores), return an array of 11 integers where the first value (at index 0) is the number of 0s in the Scanner, the second value (at index 1) is the number of ones on the Scanner, and the 11th value (at index 10) is the number of tens in the Scanner. The following assertions must pass. Assume the Scanner only has valid integers and they are in the range of 0 through 10 only.