?????????????Java?????????????????????????????????????????????????????????????????????????????List?????д????????????????????????????????????????????+swing????????н??????????????????????????????
????????д?????????List????????????????
???????????????????????????????????????????????д??????
package bean;
public class Student {
String name;
String studentId;
String sex;
int grade;
public Student(String name??String studentId??String sex??int grade){
this.name= name;
this.studentId= studentId;
this.sex = sex;
this.grade = grade;
}
public int getGrade(){
return grade;
}
public String getName(){
return name;
}
public String getSex(){
return sex;
}
public void setGrade(int g){
this.grade = g;
}
public String getStudentId(){
return studentId;
}
}
?????????漲?????Щ???????????????????Щget??????????????set?????????????????????????
??????????????????????
??????????????????swing???????棬???????????????????????????????????????棺
????System.out.println("***************");
????System.out.println("*???????????????? *");
????System.out.println("*1?????????                    *");
????System.out.println("*2????????                    *");
????System.out.println("*3???????                    *");
????System.out.println("*4????????                    *");
????System.out.println("***************");
????System.out.println("??????????????");
????????????????????????????1234???????????????ò??????Java??λ???????????????????---------Scanner ??????????????????import???????????
????????????:
????import java.util.*;
???????????д????????
????Scanner sc = new Scanner(System.in);
????int choice = sc.nextInt();