Question: public static int looker(String x, String y) { int num1 = 0; int stringlength = x.length(); String str1 = y.toLowerCase(); String str2 = x.toLowerCase();

public static int looker(String x, String y) { int num1 = 0; int stringlength = x.length(); String str1 = y.toLowerCase(); String str2 = x.toLowerCase(); for (int i = 0; i < str1.length(); i++) { if (((i+stringlength)
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
a str1substringi istringlengthequalsstr2 tests whether a substring of str1 starting from index i wit... View full answer
Get step-by-step solutions from verified subject matter experts
