@@ -0,0 +1,304 @@
+public class EndX %7B%0A  public static void main (String... args) %7B%0A    // Result:rexx.%0A    System.out.println (new EndX().endX(%22xxre%22));%0A  %7D%0A  public String endX(String str) %7B%0A    return str.equals(%22%22)?str:(str.charAt(0)=='x'?endX(str.substring(1)).concat(%22x%22):str.charAt(0)+endX(str.substring(1)));%0A  %7D%0A%7D%0A

Create EndX.java