class Student
{ private String name;
private char sex;
private double score;
Student(String cname,char csex,double cscore)
{ name=cname;
sex=csex;
score=cscore;
}
void studPrint( )
{ System.out.println("Name: "+name+"\tSex: "+sex+"\tScore: "+score);}
}
//Exam5_3.java
public class Exam5_3{
void run(){
Student stu[]=new Student[7];
stu[0]=new Student("20050701001","李小平","男",490);
stu[1]=new Student("20050701002","张华","男",530);
stu[2]=new Student("20050702003","孙晓月","女",470);
stu[3]=new Student("20050702004","王明明","女",513);
stu[4]=new Student("20050702005","刘玉","女",469);
stu[5]=new Student("20050703006","周丽萍","女",487);
stu[6]=new Student("20050703007","李军","男",532);
int n=stu.length;
for(int i=n-1;i>=0;i--)
stu[i].stuDisp();
}
public static void main(String args[]){
Exam5_3 ee=new Exam5_3();
ee.run();
}
}
错在哪里?????