⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 item.java

📁 一个简单的测试系统
💻 JAVA
字号:
package olts;

/**
 * @author zealear.sysu@yahoo.com.cn
 * @version 2.0
 */
public class Item {
    public int id;
    public int diff;
    public int ansT;
    public String item;
    public String ans;
    public int score;
    
    public Item(){
        }
    public Item(int id,int diff,int ansT,String item,String ans,int score){
        this.id = id;
        this.diff = diff;
        this.ansT = ansT;
        this.item = item;
        this.ans = ans;
        this.score = score;
        }
    
    public String toString(){
        return "ID : "+ id +
        		"\n难度 : "+diff + 
        		"\n答题时间 : "+ansT + 
        		"\n题目 : "+ item +
        		"\n分值 :"+ score + "\n";
        }
    
    public boolean isRight(String ans){
        return ans.equals(this.ans);
        }
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -