❔ Learning binary searching
i linked the txt file for my entire page
the part im stuck on is
the part im stuck on is
//
// Part B-2: FindHero
// The method should have a string parameter for the name of the hero to find.
// Call the BinarySearch method from part A-3.
// Print the result.
// If the found index is -1,
// print "<insert heroName> is not found"
// otherwise
// print "<insert heroName> was found at index <insert found index>"
//
public void FindHero(String hero)
{
BinarySearch(_heroes);
} //
// Part B-2: FindHero
// The method should have a string parameter for the name of the hero to find.
// Call the BinarySearch method from part A-3.
// Print the result.
// If the found index is -1,
// print "<insert heroName> is not found"
// otherwise
// print "<insert heroName> was found at index <insert found index>"
//
public void FindHero(String hero)
{
BinarySearch(_heroes);
}message.txt10.2KB