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