import java.util.ArrayList;
import java.util.List;
class Test {
public static void main(String[] args) {
int count = 0;
int s = 0;
List
int a[] = { 1, 14, 85, 36, 78, 74, 11, 3, 9, 17 };
for (int i = 0; i < a.length; i++) {
if (a[i] % 2 == 0) {
count++;
list.add(a[i]);
s += a[i];
}
}
Integer[] b = (Integer[])list.toArray(new Integer[list.size()]);//偶数数组
System.out.println("其中的偶数个数为:" + count);
System.out.println("其中的偶数平均值为:" + (double) s / 10.0);
}
}