Java Practice It | Self-Check 7.24: arrayMystery1 | arrays, syntax, array basics

preview_player
Показать описание
More practice its:

Problem:

Question:
Consider the following method, mystery.

public static void mystery(int[] a, int[] b) {
}
}
What are the values of the elements in array a1 after the following code executes?

int[] a1 = {1, 3, 5, 7, 9};
int[] a2 = {1, 4, 9, 16, 25};
mystery(a1, a2);
Рекомендации по теме