Write a JSF that prompts the user to enter a capital for a state, as shown in

Question:

Write a JSF that prompts the user to enter a capital for a state, as shown in Figure 39.34a. Upon receiving the user input, the program reports whether the answer is correct, as shown in Figure 39.34b. You can click the Next button to display another question. You can use a two-dimensional array to store the states and capitals, as proposed in Exercise 8.37. Create a list from the array and apply the shuffle method to reorder the list so the questions will appear in random order.

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

Step by Step Answer:

Question Posted: