freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java課程設(shè)計(jì)---基于java的在線評測系統(tǒng)的設(shè)計(jì)與開發(fā)(文件)

2025-02-05 12:49 上一頁面

下一頁面
 

【正文】 public User login(int userId,String userPwd) throws IdOrPwdException{ User u=null。 } throw new IdOrPwdException(密碼錯(cuò)誤!)。// } } public void createPaper(){ paper=new ArrayListQuestionInfo()。 level = 10。 i 2。 (qi)。//清空上次選擇的用戶答案 (userAnswer)。 } public QuestionInfo findQuestionByIndex(int index){ return (index1)。 } public void setPaper(ListQuestionInfo paper) { = paper。import 。import 。// 7個(gè)User對象Set List Map,級別為鍵,正行信息為值 MapInteger, ListQuestion questions= new HashMapInteger, ListQuestion()。 BufferedReader br。 while((line=())!=null){ if(() || ()){ continue。 String txtPwd=lines[2]。 (txtId, u)。 try { br = new BufferedReader( new InputStreamReader( new FileInputStream(questionTxt)))。//每題要讀取六行 int level=()。 (q)。//{,2/3,5,5} ListInteger answer=parseAnswer(lineDatas[1])。 int type=(()==1?0:1)。//B String optionC=()。 (optionC)。// (options)。 (type)。 for(String ans : answerStr){ ((ans))。 } public void setUsers(MapInteger, User users) { = users。 User u1=new User(1001, zhangsan, 1234, 314234134, 2341)。 ((), u2)。 (())。import 。import 。import 。 JTextArea j。 public RuleFrame(){ init()。 setContentPane(createContentPane())。 (()/2, ()/2)。 String line。 }catch(NullPointerException e){ ()。 } catch (Exception e) { ()。 (false)。 return p。 } public void setJ(JTextArea j) { = j。 String content。 ListInteger answer。 } public ListString getOptions() { return options。 } public int getLevel() { return level。 } public int getType() { return type。import 。 ListInteger userAnswer=new ArrayListInteger()。 } public void setQ(Question q) { = q。 } public void setUserAnswer(ListInteger userAnswer) { = userAnswer。 char c=39。 }} User類代碼:package 。 String phone。 = pwd。 } public void setId(int id) { = id。 } public void setPwd(String pwd) { = pwd。 } public void setEmail(String ) { = 。 } public IdOrPwdException(Throwable cause) { super(cause)。public class IdOrPwdException extends Exception{ public IdOrPwdException() { } public IdOrPwdException(String message, Throwable cause) { super(message, cause)。 } public void setPhone(String phone) { = phone。 } public void setName(String name) { = name。 = 。 public User(){} public User(int id, String name, String pwd, String phone, String ) { = id。 String name。 for (String option : options) { questionStr+=(c++)+.+option+\n。 questionStr+=index+. +()+\n。 } public void setIndex(int index) { = index。 = index。public class QuestionInfo { Question q。 } Override public String toString() { return 題干:+content +選項(xiàng): +(0)+\n +(1)+\n +(2)+\n +(3)+\n +分?jǐn)?shù):+score +級別:+level。 } public ListInteger getAnswer() { return answer。 } public int getScore() { return score。//0代表單選題 1代表多選題 public Question(){} public String getContent() { return content。 int score。import 。 } public void setRuleFrame(RuleFrame ruleFrame) { = ruleFrame。 ().add(j)。 JScrollPane q=new JScrollPane()。 } } (str)。 while((line=())!=null){ if(() || ()){ continue。 BufferedReader br。 } private void centerFrame() { Toolkit tk=()。 setSize(width, height)。 int width=300。import 。import 。import 。import 。 (())。 User u3=new User(1003, wangwu, 1234, 314234134, 2341)。 } public void setQuestions(MapInteger, ListQuestion questions) { = questions。 } public User getUserByUserId(int userId){ return (userId)。 } public ListInteger parseAnswer(String answerData){//answerData : 2/3 String[] answerStr=(/)。 (level)。 Question q=new Question()。//D (optionA)。//將四個(gè)選項(xiàng)放在list中 String optionA=()。//5 int level=(lineDatas[3])。 } } } catch (Exception e) { ()。 (q)。 while((line=())!=null){ if(() || ()){ continue。 } } public void initQuestion(){ File questionTxt=new File()。 String txtEmail=lines[4]。 int txtId=(lines[0])。 int flag=1。 initQuestion()。import 。import 。import 。 } public void setEntityContext(EntityContext entityContext) { = entityContext。 //比較答案計(jì)算分?jǐn)?shù)for(QuestionInfo qi : paper){ if(().getAnswer().equals(())){ score+=().getScore()。 ListInteger lastUserAns=()。//[0,10) [0,9] Question q=(ranIndex)。 Random random=new Random()。//題庫 int index=1。// for (QuestionInfo q:paper) {// (*************)。 if(u==null){ throw new IdOrPwdException(查無此人!)。public class ExamService { EntityContext entityContext。import 。import 。 } public void setClientContext(ClientContext clientContext) { = clientContext。 Dimension d=()。 ()。 ImageIcon icon=new ImageIcon(url)。 ()。 ImageIcon icon=new ImageIcon(url)。 ()。 ImageIcon icon=new ImageIcon(url)。 ()。 ImageIcon icon=new ImageIcon(url)。 (createRuleBtn())。 return imageLabel。 } //創(chuàng)建中間面板 “上” 部分的圖片標(biāo)簽 public JLabel createImageLabel(){ JLabel imageLabel=new JLabel()。 userInfoLab=new JLabel(歡迎:XXX 參與無與倫比的賽事!,)。 (,createCenterPane()
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1