publicclassArrayDemo{publicstaticvoidmain(String[] args){int[] a ={1,2,6,12,15,16,17}
System.out.println("能够被3整除的数值元素有:");for(int i =0; i<a.length;i++){if(a[i]%3==0){
System.out.println(a[i]);}}}}
选择题BAAADACDCA10.A编程public class ArrayDemo { public static void main(String[] args){ int[] a = {1,2,6,12,15,16,17} System.out.println("能够被3整除的数值元素有:"); for (int i = 0; i<a.lengt...