@@ -0,0 +1,657 @@
+public boolean xyzMiddle(String str) %7B%0A  if (str.equals(%22xyz%22)) return true;%0A%0A  // Try by taking off from the end first%0A  String copy = new String(str);%0A  for (int i=0; copy.length() %3E 3; i++) %7B%0A    copy = copy.substring(0, copy.length()-1);%0A    if (copy.equals(%22xyz%22)) return true;%0A    copy = copy.substring(1);%0A    if (copy.equals(%22xyz%22)) return true;%0A  %7D%0A%0A  // Try by taking off from the beginning first%0A  copy = new String(str);%0A  for (int i=0; copy.length() %3E 3; i++) %7B%0A    copy = copy.substring(1);%0A    if (copy.equals(%22xyz%22)) return true;%0A    copy = copy.substring(0, copy.length()-1);%0A    if (copy.equals(%22xyz%22)) return true;%0A  %7D%0A%0A  return false;%0A%7D%0A

Create xyzMiddle.java