17 if ((x ==
null) || (y ==
null))
19 if (y.length() < x.length())
21 for (
int yIter = x.length() - 1; yIter < y.length(); yIter++) {
29 for (
int xIter = 0; xIter < x.length(); xIter++) {
30 int yComparePosition = (yIter - x.length() + 1) + xIter;
31 if (x.charAt(xIter) != y.charAt(yComparePosition)) {
38 int toReturn = yIter - x.length() + 1;