exam-master/src/org/mmxbb/exam/util/GetQuestionCount.java

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package org.mmxbb.exam.util;

import java.sql.SQLException;
import java.util.StringTokenizer;

import org.mmxbb.exam.bean.Question;
import org.mmxbb.exam.dao.QuestionDAO;


public class GetQuestionCount {
  Question question = new Question();
  int singleSimpleCount = 0;
  int singleMidCount = 0;
  int singleDifficultyCount = 0;
  int singleValue = 0;

  int multiSimpleCount = 0;
  int multiMidCount = 0;
  int multiDifficultyCounty = 0;
  int multiValue = 0;

  int fitinSimpleCount = 0;
  int fitinMidCount = 0;
  int fitinDifficultyCount = 0;
  int fitinValue = 0;

  int answerSimpleCount = 0;
  int answerMidCount = 0;
  int answerDifficultyCount = 0;
  int answerValue = 0;

  //add the new string to old string!!
  public String stringOldToNew(String finalString, String addString,
                               String action) {
    GetQuestionCount gqc = new GetQuestionCount();
    String[] question_type = new String[4];
    StringTokenizer tokenizer = new StringTokenizer(finalString, "@@");
    int i = 0;
    while (tokenizer.hasMoreTokens()) {
      question_type[i] = tokenizer.nextToken();
      i++;
    }
    if (action.equals("single")) {
      question_type[0] = "@@" +
          gqc.addWithoutDuplicate(question_type[0], addString);
      question_type[1] = "@@" + question_type[1];
      question_type[2] = "@@" + question_type[2];
      question_type[3] = "@@" + question_type[3];
    } else if (action.equals("multi")) {
      question_type[1] = "@@" +
          gqc.addWithoutDuplicate(question_type[1], addString);
      question_type[0] = "@@" + question_type[0];
      question_type[2] = "@@" + question_type[2];
      question_type[3] = "@@" + question_type[3];
    } else if (action.equals("fitin")) {
      question_type[2] = "@@" +
          gqc.addWithoutDuplicate(question_type[2], addString);
      question_type[0] = "@@" + question_type[0];
      question_type[1] = "@@" + question_type[1];
      question_type[3] = "@@" + question_type[3];
后面还有 164 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。