Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions