Question: JAVA create method Sports binarySearch(String name). This method takes the name of a city as a parameter and conducts a binary search to check if

JAVA

create method Sports binarySearch(String name). This method takes the name of a city as a parameter and conducts a binary search to check if that city currently has a sports team. IF a city is found with a team, it should return the Sports object it finds.

Some cities will have multiple teams, while some cities will only have 1, If a city is searched for that is not listed, return null

MOCK CSV DATA:

Chicago, bulls, bears, cubs, whitesox, 2000000

NYC, knicks, jets, giants, Yankees, mets, 12000000

Denver, nuggets, broncos, 700000

Phoneix, suns, 1500000

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!