用户名:我是丫头的小熊
packageCountNum;
importj**a.awt.*;
importj**a.util.ArrayList;
importj**a.util.Scanner;
importj**a.uti一举胡而刚果它劳的l.Vector;
publicclassCount{
publicstaticvoidmain(String[]args){
intbujige=0;
intjige=0;
intzhongdeng=0;
intlianghao=0;
intyouxiu=0;
ArrayList<Integer>a=newArrayList<Integ探刘坐妒散限er>();
Scannersca=newScanner(***.in);
intgrade=sca.nextInt();
while(grade!=-1){
a.add(grade);
//System.o来自ut.println(a.toString问答());
grade=sca.nextInt();
}
for(intaa:那交保范弦致杆婷画a){
if(aa<60){
bujige++;
}elseif(aa>=60&&aa<70){
jige++;
}elseif(aa>=70&&aa<80){
zhongdeng++;
}elseif(aa>=80&&aa<90){
lianghao++准严强专长罗;
}elseif(aa>=90&&aa<=100){
youxiu++;
}
}
System.out.println("不及格人数有:"+bujige);
System.out.println("及格人数有:"+jige);
S模令逐轻著丰ystem.out.println("中等人数有:"+zhongdeng);
System.研工错己谁失out.println("良好人数有:"+lianghao);
System.out.println("优秀人数有:"+youxiu);
}
}