Java Practice It | Self-Check 7.27: arrayMystery4 | arrays, syntax, array basics

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

Problem:

Question:
Consider the following method:

public static int arrayMystery4(int[] list) {
int x = 0;
int y = list[i] - list[0];
if (y } x) {
x = y;
}
}
return x;
}
For each array below, indicate what value would be returned if the method mystery were called and passed that array as its parameter.
Рекомендации по теме