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

Question:

Write a JSP that prompts the user to enter a capital for a state, as shown in Figure 38.16a. Upon receiving the user input, the program reports whether the answer is correct, as shown in Figure 38.16b. 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 9.22. 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: