private void setQuestions(int quizID) throws SQLException {
		Statement temp = con.getStatement();
		ResultSet questionRS = temp.executeQuery("select * from questions where quiz_id = '" + quizID + "'");

		ArrayList<QuestionInfo> questionInfo = new ArrayList<QuestionInfo>();
		while(questionRS.next()) {
			QuestionInfo newQuestion = new QuestionInfo(questionRS.getInt("question_id"), questionRS.getString("question_type"), questionRS.getInt("question_number"));
			questionInfo.add(newQuestion);
		}

		// Sort or randomize as necessary
		if(getIfRandomized()) {
			Collections.shuffle(questionInfo);
			for(int i=0;i<questionInfo.size();i++) {
				QuestionInfo currQuestion = questionInfo.get(i);
				currQuestion.setQuestionNumber(i+1);
			}
		} else {
			Collections.sort(questionInfo, new CustomComparator());
		}

		setQuestionsArray(questionInfo);
	}