//筛选程序,将学生分数筛选并提示 public class IfElse { public static void main(String []args){ int[] scores={65,80,95,50,40}; for(int i=0;i<scores.length;i++); if(scores[i]>=60){ System.out.println(scores); } } }
System.out.println(scores[i]);