封装一个记录数据的类
package com.jdbc;
//个人信息记录类
public class user {
private String Id;
private String Name;
private String Sex;
private String Age;
private String Score;
private String Interest;
private String School;
public user(String Name, String Sex, String Age, String Score, String Interest, String School) {
super();
this.Id = null;
this.Name = Name;
this.Sex = Sex;
this.Age = Age;
this.Score = Score;
this.Interest = Interest;
this.School = School;
}
public String getId() {
return Id;
}
public void setId(String Id) {
this.Id = Id;
}
public String getName() {
return Name;
}
public void setName(String Name) {
this.Name = Name;
}
public String getSex() {
return Sex;
}
public void setSex(String Sex) {
this.Sex = Sex;
}
public String getAge() {
return Age;
}
public void setAge(String Age) {
this.Age = Age;
}
public String getScore() {
return Score;
}
public void setScore(String Score) {
this.Score = Score;
}
public String getInterest() {
return Interest;
}
public void setInterest(String Interest) {
this.Interest = Interest;
}
public String getSchool() {
return School;
}
public void setSchool(String School) {
this.School = School;
}
}