What is the purpose of the following code?
int[] frequency = new int[101];
for (int num : numbers) {
frequency[num]++;
}
What is the purpose of the following code?
int[] frequency = new int[101];
for (int num : numbers) {
frequency[num]++;
}