public class Student {
private String stuId;
private String stuName;
private String stuSex;
public void Studenter(String stuId , String stuName ,String stuSex){
this.stuId = stuId ;
this.stuName = stuName ;
this.stuSex = stuSex ;
}
public String getStuId() {
return stuId;
}
public void setStuId(String stuId) {
this.stuId = stuId;
}
public String getStuName() {
return stuName;
}
public void setStuName(String stuName) {
this.stuName = stuName;
}
public String getStuSex() {
return stuSex;
}
public void setStuSex(String stuSex) {
this.stuSex = stuSex;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
Student[] student = new Student[3] ;
student[0] = new Student() ;
student[0].Studenter("1000" , "luyihua" , "男");
student[1] = new Student() ;
Studenter("1000" , "luyihua" , "男");
for(int i = 0 ; i < 3 ; i ++ ){
System.out.println(student[i].Studenter());
}
}
}
错在哪里呀???