Create a java code on question hierarchy


Discuss the below:

Q: Add a class FillInQuestion to the question hierarchy of How To 10.1. An object of this class is constructed with a string that contains the answer, surrounded by _ _, for example, "The inventor of Java was _James Gosling_". The question should be displayed as

The inventor of Java was _____

Here is a sample program run:

_____ was the inventor of Java.
Your answer:
James Gosling
true
The first U.S. president was _____
Your answer:
George Washington
true

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a java code on question hierarchy
Reference No:- TGS01934443

Now Priced at $25 (50% Discount)

Recommended (91%)

Rated (4.3/5)