Find the index locations of multiple matches to a string


Question: Find the index locations of multiple matches to a string using binary search (Java).

For example:

The red rabbit ran around the red car.

When I search for "red", i need it to print out both indexes for red, not just the most current one

Be sure to add comments and comments should be included to explain your program.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Find the index locations of multiple matches to a string
Reference No:- TGS0957768

Expected delivery within 24 Hours