Question: Need help with a java program: This will have two data structures. The two data structures will be a stack and the other will be

Need help with a java program:

This will have two data structures. The two data structures will be a stack and the other will be a hashmap. The hashmap object will be added to the stack every time the user picks an answer. The hashmap will have a key and value. The key will be the timestamp (system time when the user selected a choice) and the value will be the choice the user picked. For example, if the question was Buffalo vs. Pittsburgh and the user picked Buffalo at 10pm, then the timestamp (key) will be 10pm and the value would be Buffalo. This hashmap object will then be added to the stack. You will have a hashmap object for every answer to the questions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!