Skip to content

Instantly share code, notes, and snippets.

@codingwithsara
Created October 15, 2018 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingwithsara/acc790e240cc73170a9fd9455eac5c3a to your computer and use it in GitHub Desktop.
Save codingwithsara/acc790e240cc73170a9fd9455eac5c3a to your computer and use it in GitHub Desktop.
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