Question: An application processes states by name. Each state is associated with the names of all of its previous governors. The user enters a state name

An application processes states by name. Each state is associated with the names of all of its previous governors. The user enters a state name and the list of governors is displayed. Which data type best matches the storage and retrieval needs of the application?
Group of answer choices
one set of state names another set of lists of governor names
map with state names as the key and list of governor names as the value
two dimensional array where the first column stores the state name and remaining columns store the governor names
map with list of governor names as the key and state names as the value

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 Programming Questions!