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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started