Use recursion to implement a method boolean find(String t) that tests whether a string is contained in a sentence:

Sentence s = new Sentence("Mississippi!");
boolean b = s.find("sip"); //
Returns true

Hint: If the text starts with the string you want to match, then you are done. If not, consider the sentence that you obtain by removing the first character.

Complete the following files:

Sentence.java

SentenceTester2.java

Use the following file:

SentenceTester.java

/**
   A tester class for Sentence.
*/
public class SentenceTester
{
   public static void main(String[] args)
   {
      Sentence s = new Sentence("Mississippi!");
      boolean b = s.find("sip");
      System.out.println(b);
      System.out.println("Expected: true");
      b = s.find("tip");
      System.out.println(b);
      System.out.println("Expected: false");
   }
}