Question: Only Java calls them collections. Containers is cooler. But anyway... Continuing in the spirit of needing to know what they are but not needing to

Only Java calls them collections. Containers is cooler. But anyway...

Continuing in the spirit of needing to know what they are but not needing to know how they work, what kind of Cont... Collection would you use for each of these?

https://docs.oracle.com/javase/tutorial/collections/interfaces/index.html (Links to an external site.)Links to an external site.

1) Track the value of all your Pokemon cards so you can find out if your Charizard is worth more than 100 dollars

2) Keep track of customers in line at a cash register so you can deal only with the person who got in line first

3) Track the first names of everyone in the class so you can make sure your teaching examples don't use the name of someone in class

4) Track the student numbers of everyone in the class to make sure nobody is using a counterfeit duplicate number

5) Track all the books you own that begin with each letter of the alphabet so you can organize your shelves (this one is the combination of two containers)

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!