摘要:
int n = 17;boolean[] persons = new boolean[n];//初始化for(int i=0;i1){//继续报数for(int i=0;i<persons.length;i++){if(persons[i]){count++;if(count == 3){perso... 阅读全文
摘要:
int[] num = new int[]{5,6,1,4,3,6,7,8,92,6};int min = num[0];int n = 0;for (int i = 0; i < num.length; i++) {if(num[i]<min){min = num[i];n = i;}}Syste... 阅读全文