📅  最后修改于: 2022-03-11 14:58:39.403000             🧑  作者: Mango
代码示例2
public int[] findEvens() {
int numberEvens = 0;
for (int i = 0; i < numbers.length; i++) {
if (i % 2 == 0) {
numberEvens++;
}
}