public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPass() {
return pass;
}
public void setPass(String pass) {
this.pass = pass;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
}
异常信息:
java,lang.runtimeexception:unable to start activity componentinfo{com.example,register/com.example,register.sec}:java.lang.classcastexception:java.lang.string cannot be cast to com.example.register.person