question.java
来自「一个考试系统 基于xml数据库 没有利用任何工具读取数据库」· Java 代码 · 共 82 行
JAVA
82 行
import java.util.*;
public class Question{
private String note;
private String detail;
private Vector choice;
private String standardAnswer;
private String selectedAnswer="0000";
private boolean marked;
private boolean attempted;
public Question(){
}
public Question(String note,String detail,Vector choice,String standardAnswer,boolean marked,boolean attempted){
this.note = note;
this.detail = detail;
this.choice = choice;
this.standardAnswer = standardAnswer;
this.marked = marked;
this.attempted = attempted;
}
public void setNote(String note){
this.note = note;
}
public String getNote(){
return this.note;
}
public void setDetail(String detail){
this.detail = detail;
}
public String getDetail(){
return this.detail;
}
public void setChoice(Vector choice){
this.choice = choice;
}
public Vector getChoice(){
return this.choice;
}
public void setStandardAnswer(String standardAnswer){
this.standardAnswer = standardAnswer;
}
public String getStandardAnswer(){
return this.standardAnswer;
}
public void setSelectedAnswer(String selectedAnswer){
this.selectedAnswer = selectedAnswer;
}
public String getSelectedAnswer(){
return this.selectedAnswer;
}
public void setMarked(boolean marked){
this.marked = marked;
}
public boolean getMarked(){
return this.marked;
}
public void setAttempted(boolean attempted){
this.attempted = attempted;
}
public boolean getAttempted(){
return this.attempted;
}
public void checkAnswer(){
}
public void reset(){
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?