java method help?

Write a method called findInString that accepts two arguments: String search; String find. The method should return a custom class called SearchResults which has the following attributes with accessors: boolean found, int countOfMatches, and a list of items of a custom class called Match with attributes int startPosition, int length. The method should find all instances of the find string in the search string.

There are no answers yet.
Be the first to answer this question.