Question: JAVA question. Please help! Select the best data structure for each situation. Some answer items may be used more than once, while others may not

 JAVA question. Please help! Select the best data structure for each

JAVA question. Please help!

Select the best data structure for each situation. Some answer items may be used more than once, while others may not be used at all. Unknown number of Social Security numbers, look up specific random numbers HashSet [Choose] Names and grades, print alphabetical list ArrayList TreeMap 10 random lottery numbers, printed in numerical order HashMap HashSet TreeSet Bicycle serial numbers and owners, random lookup by serial number Linked List Scores by inning (incl extra innings) for a single baseball team recorded as scored ArrayList Unknown number of test scores, added sequentially, accessed by random index ArrayList Unknown number of test scores that requires frequent deletion Linked List

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!