@@ -0,0 +1,336 @@
+// http://codingbat.com/prob/p136594%0A%0Apublic boolean xyzThere(String str) %7B%0A  int xyzIndex = str.indexOf(%22xyz%22);%0A  %0A  while (xyzIndex != -1) %7B%0A    if (xyzIndex == 0) %7B%0A      return true;%0A    %7D%0A    else if (str.charAt(xyzIndex-1) != '.') %7B%0A      return true;%0A    %7D%0A    xyzIndex = str.indexOf(%22xyz%22, xyzIndex+2);%0A  %7D%0A  %0A  return false;%0A%7D%0A

Create xyzThere.java