Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
4-2
tmpArray.add(quizData[i][3]); // 選択肢2
tmpArray.add(quizData[i][4]); // 選択肢3
// tmpArrayをquizArrayに追加する
quizArray.add(tmpArray);
}
showNextQuiz();
}
public void showNextQuiz() {
// クイズカウントラベルを更新
countLabel.setText("Q" + quizCount);
// ランダムな数字を取得
Random random = new Random();
int randomNum = random.nextInt(quizArray.size());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.