📄 test.java
字号:
/**
* Test.java
* 本代码为教育目的而编写,但遵循产品代码规范。
* 任何人任何时候都可以使用此代码,但需说明引用的代码来源于
* www.fangsoft.org。
* 欢迎任何建议。
* 访问我们:
* 电子邮件:fangsoft.com@gmail.com
* 网站: www.fangsoft.org
* =====================================
* This code is for software education,but it follows production code quality.
* Anyone can use this code anywhere, but you should comment the code is from
* www.fangsoft.org.
* Any suggestion from you is appreciated.
* Visit us by
* email: fangsoft.com@gmail.com
* websiste: www.fangsoft.org
*/
package org.fangsoft.testcenter.model;
import java.util.ArrayList;
import java.util.List;
/**
* @author fangsoft
* 2007-2-8
*
*/
public class Test {
private String type;
private String name;
private String description;
private int numQuestion;
private int timeLimitMin;
private int score;
private List<Question> question;
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Test() {
//this(5);
this.question = new ArrayList<Question>();
}
public void addQuestion(Question q) {
//question[count++]=q;
this.question.add(q);
}
public Question getQuestion(int index) {
//return question[index];
return this.question.get(index);
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getNumQuestion() {
return numQuestion;
}
public void setNumQuestion(int numQuestion) {
this.numQuestion = numQuestion;
}
public List<Question> getQuestion() {
return question;
}
public void setQuestion(List<Question> questions) {
this.question = questions;
}
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
public int getTimeLimitMin() {
return timeLimitMin;
}
public void setTimeLimitMin(int timeLimitMin) {
this.timeLimitMin = timeLimitMin;
}
public void loadQuestion() {
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -