Define a trivia class that contains information about a


Define a Trivia class that contains information about a single trivia question. The question and answer should be defined as instance variables of type String. Create accessor and mutator methods. In your main method create two Trivia objects with questions and answers of your choice. Then for each Trivia object have your program ask the question, input an answer, compare the typed answer to the actual answer, and output if the user's answer was correct.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Define a trivia class that contains information about a
Reference No:- TGS02394986

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)