I have this assignement for school for whitch i have to make a small program that will ask you a question, list the possible answers and you have to input the number of the answer. It would not be that much of a problem if not for two things:
-the answers have to show in different order every time the question is asked
-the teacher gave us a specific class/methode structure we have to follow
- input/output
- "logic" class with:
- constructor (String question, String[] answers, int indexOfTheCorrectAnswer)
- public String getQuestion
- public String[] getAnswers
- public String getCorrectAnswer
- public boolean controlAnswer
- private void randomize
Could you guys hint me a way to do the randomizing? The rest isnt that much of a problem to handle