Step 75
This commit is contained in:
@@ -3,4 +3,10 @@ class QuizQuestion {
|
||||
|
||||
final String text;
|
||||
final List<String> answers;
|
||||
}
|
||||
|
||||
List<String> getShuffeldAnswers() {
|
||||
final shuffeldList = List.of(answers);
|
||||
shuffeldList.shuffle();
|
||||
return shuffeldList;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user