@@ -0,0 +1,553 @@
+// http://codingbat.com/prob/p126212%0A%0Apublic String stringYak(String str) %7B%0A  return str.replaceAll(%22y%22 + %22%5Ba-zA-z%5D%22 + %22k%22, %22%22);%0A%7D%0A%0A/* Alternative version by CodingBat */%0A%0A/*%0A%0Apublic String stringYak(String str) %7B%0A  String result = %22%22;%0A  %0A  for (int i=0; i%3Cstr.length(); i++) %7B%0A    // Look for i starting a %22yak%22 -- advance i in that case%0A    if (i+2%3Cstr.length() && str.charAt(i)=='y' && str.charAt(i+2)=='k') %7B%0A      i =  i + 2;%0A    %7D else %7B // Otherwise do the normal append%0A      result = result + str.charAt(i);%0A    %7D%0A  %7D%0A  %0A  return result;%0A%7D%0A%0A*/%0A

Create stringYak.java