?? user.java
字號:
package grad.util.user;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class user { public user() { } private int id=0; //自動編號 String account=""; //用戶帳號,老師的帳號為課程編號 String password="";//用戶密碼 int type=0; //用戶類型1-學生,2-老師,3-管理員 String name=""; //用戶真實姓名 String sex=""; //用戶性別 String college=""; //用戶所在學院 String teacher=""; //如果是學生則為 指導教師姓名,否則值為null public void setId(int id) { this.id=id; } public int getId() { return this.id; } public void setAccount(String account) { this.account=account; } public String getAccount() { return this.account; }public void setPassword(String ps){ this.password=ps;}public String getPassword(){ return this.password;}public int getType(){ return this.type;}public void setType(int type){ this.type=type;}public void setName(String name){ this.name=name;}public String getName(){ return this.name;}public void setSex(String sex){ this.sex=sex;}public String getSex(){ return this.sex;}public void setCollege(String college){ this.college=college;}public String getCollege(){ return this.college;}public void setTeacher(String teacher){ this.teacher=teacher;}public String getTeacher(){ return this.teacher;}}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -