public int getTotalCorrect() { int Tot = 0; QQStudyPart QPart; for (int i = 0; i < QParts.size(); i++) { QPart = QParts.get(i); if (QPart.getStart() > 0) Tot += QPart.getNumCorrect(); } return Tot; }
public String getStudyParts() { String tokens = ""; QQStudyPart currentPart; for (int i = 0; i < QParts.size(); i++) { currentPart = QParts.get(i); tokens += String.valueOf(currentPart.getStart()) + ","; tokens += String.valueOf(currentPart.getNonZeroLength()) + ","; tokens += String.valueOf(currentPart.getNumCorrect()) + ","; tokens += String.valueOf(currentPart.getNumQuestions()) + ","; tokens += String.valueOf(currentPart.getAvgLevel()); if (i < QParts.size() - 1) tokens += ";"; // Skip ; after the last token } return tokens; }