What does the following code snippet accomplish?
int[] result = new int[array.length];
for (int i = 0; i < array.length; i++) {
result[i] = array[i] * 3;
}
What does the following code snippet accomplish?
int[] result = new int[array.length];
for (int i = 0; i < array.length; i++) {
result[i] = array[i] * 3;
}