Hint if the text starts with the string you want to match


Basic Java Question (Recrusion)

Use recursion to implement a method

public static boolean find(String text, String str) that tests whether a given text contains a string. For example, find ("Mississippi", "sip") returns true.

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

Solution Preview :

Prepared by a verified Expert
Macroeconomics: Hint if the text starts with the string you want to match
Reference No:- TGS01696181

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)