?? student.java
字號:
package entity;
import db.StudentinformationBiz;
public class Student {
private int classid;
private String stu_ID;
private String stu_name;
private String nation;
public int getClassid() {
return classid;
}
public void setClassid(int classid) {
this.classid = classid;
}
public String getStu_ID() {
return stu_ID;
}
public void setStu_ID(String stu_ID) {
this.stu_ID = stu_ID;
}
public String getStu_name() {
return stu_name;
}
public void setStu_name(String stu_name) {
this.stu_name = stu_name;
}
public String getNation() {
return nation;
}
public void setNation(String nation) {
this.nation = nation;
}
public void add() {
StudentinformationBiz db=new StudentinformationBiz();
String sql="insert into studentinformation(stu_ID,stu_name,classid,nation) values('"+this.stu_ID+"',"+"'"+this.stu_name+"',"+"'"+this.classid+"',"+"'"+this.nation+"')";
System.out.println(sql);
db.addUser(sql);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -