-
-
Save codingwithsara/acc790e240cc73170a9fd9455eac5c3a to your computer and use it in GitHub Desktop.
4-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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