Create a class that contains an array of 10 multiple-choice questions to which the user is required

Question:

Create a class that contains an array of 10 multiple-choice questions to which the user is required to respond with an A, B, or C. Display an error message if the user enters a character other than A, B, or C. If the user enters nothing—that is, if the user just presses the Enter key without making an entry, catch the thrown Exception, display an error message, and present the same question to the user again. Save the file as QuizWithExceptionHandling.java.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 9780357673423

10th Edition

Authors: Joyce Farrell

Question Posted: