@@ -0,0 +1,337 @@
+// http://codingbat.com/prob/p134250%0A%0Apublic boolean xyBalance(String str) %7B%0A  int xLastOccurrenceIndex = str.lastIndexOf('x');%0A  %0A  if (xLastOccurrenceIndex == -1) %7B%0A    return true;%0A  %7D%0A  %0A  for (int i = xLastOccurrenceIndex+1; i %3C str.length(); ++i) %7B%0A    if (str.charAt(i) == 'y') %7B%0A      return true;%0A    %7D%0A  %7D%0A  %0A  return false;%0A%7D%0A

Create xyBalance.java