?? item.java
字號:
package model.domain;
/**
* 作為題目的本地類,從此類可以得到關于題目的有關信息
* @author Cynthia
*/
public class Item {
//屬性
private String id;
private String difficulty;
private int time;
private String content;
private String answer;
private float score;
/**構造函數
*
*/
public Item(){
id = new String();
difficulty = new String();
time = 0;
content = new String();
score = 0;
}
/**構造函數
*
* @param id 題目的標識
* @param difficulty 題目難度
* @param time 預測用時
* @param content 題目內容
* @param answer 答案
* @param score 所占分數
*/
public Item(String id,String difficulty,int time,String content,String answer, float score){
this();
this.id = id;
this.difficulty = difficulty;
this.time = time;
this.content = content;
this.answer = answer;
this.score = score;
}
public String getId(){return id;}
public String getDifficulty(){return difficulty;}
public int getTime(){return time;}
public String getContent(){return content;}
public String getAnswer(){return answer;}
public float getScore(){return score;}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -