0

I'm choosing random questions and answers. And I want to generate new question and answers again after users chose the right answer. How can I do that without for loop? Is there a code like "go to"?

  • You shouldn't need to use goto type statements if you have constructed your code correctly in Java/Android. You can achieve something similar with break and continue statements. This post explains how to do this: http://stackoverflow.com/questions/2430782/alternative-to-goto-statement-in-java – BryanJ Jul 04 '13 at 15:59

1 Answers1

0

"Goto" loops are generally frowned upon - consider using a while-loop maybe?

MattWilliams89
  • 157
  • 1
  • 15