求各位大神解决一下
一人一城 2014-09-17 08:41:01 public class ys25 {
String name;
int age;
String sex;
int score1;
int score2;
public void show(String name,int age,String sex,int score1,int score2){
System.out.println(name+"\t"+age+"\t"+sex+"\t"+score1+"\t"+score2+"\t");
}
public static void main(String[] args) {
int n=0;
System.out.println("姓名"+"\t"+"年龄"+"\t"+"性别"+"\t"+"C语言"+"\t"+"Java");
new ys25().show("赵某",20,"男",70,80);
new ys25().show("钱某",21,"男",59,60);
new ys25().show("孙某",19,"女",42,53);
new ys25().show("李某",21,"女",42,53);
new ys25().show("周某",21,"男",78,36);
new ys25().show("吴某",19,"男",56,46);
System.out.println();
for(int i=0;i<5;i++){
if(new ys25().score1<60)
{
n++;
}
}
System.out.println("c语言补考的人数有"+n+"人");
}
}
为什么输出的补考人数5啊,怎么改到正确的?