?? courseinfo.java
字號(hào):
package lk;/** * <p>Title: </p> * * <p>Description: </p> * * <p>Copyright: Copyright (c) 2008</p> * * <p>Company: </p> * * @author not attributable * @version 1.0 */public class CourseInfo { public String id; public String courseName; public int theoryhours; public int operatehours; public int onlinehours; public int guidancehours; /** * 重寫tostring方法 * @return String */ public String toString() { return courseName; } /** * 只需要名字的構(gòu)造方法 * @param courseName String */ public CourseInfo(String courseName) { this.courseName = courseName; } /** * 重寫構(gòu)造方法 * @param courseName String * @param theoryhours int * @param operatehours int * @param onlinehours int * @param guidancehours int */ public CourseInfo(String courseName, int theoryhours, int operatehours, int onlinehours, int guidancehours) { this.courseName = courseName; this.theoryhours = theoryhours; this.operatehours = operatehours; this.onlinehours = onlinehours; this.guidancehours = guidancehours; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -