@@ -0,0 +1,142 @@
+public boolean xyBalance(String str) %7B%0A  int lastX = str.lastIndexOf(%22x%22);%0A  return lastX == -1 %7C%7C str.substring(lastX).indexOf(%22y%22) != -1;%0A%7D%0A

Create xyBalance.java