import java.util.Arrays;
public class OL {
public static void main(String[] args){
int j=1;
int [] nums={89,-23,64,91,1819,818,55,152,713};
Arrays.sort(nums);
for (int i=nums.length-1; i>=0; i--){
if ((nums[i]>=0)&&(nums[i]<=100)){
j++;
if(j>3){
break;
}
}
System.out.println(nums[i]);
}
}
}
美得像一个遗憾
冲啊
相关分类