@@ -0,0 +1,249 @@
+public class NoX %7B%0A  public static void main (String... args) %7B%0A    // Result: abc%0A    System.out.println(new NoX().noX(%22xxxxabxxxxxcxxxx%22));%0A  %7D%0A  %0A  public String noX(String str) %7B%0A    return(str.indexOf ('x')==-1)?str:str.replace(%22x%22,%22%22);%0A  %7D%0A%0A%7D%0A

Create NoX.java