#Made a Java Quiz with very fat code
4 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @stuck sierra! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Use OO. Example a question class with the question, answer and explanation as variables. You can have a method in there that checks an answer. Then you can have a list of question objects which you iterate through