@@ -0,0 +1,1137 @@
+package codingbat.string3;%0A%0A/*%0A * Given two strings, base and remove, %0A * return a version of the base string where all instances of the remove string%0A * have been removed (not case sensitive). %0A * You may assume that the remove string is length 1 or more. %0A * Remove only non-overlapping instances, %0A * so with %22xxx%22 removing %22xx%22 leaves %22x%22. %0A * %0A * withoutString(%22Hello there%22, %22llo%22) = %22He there%22%0A * withoutString(%22Hello there%22, %22e%22) = %22Hllo thr%22%0A * withoutString(%22Hello there%22, %22x%22) = %22Hello there%22 %0A * %0A */%0A%0Apublic class withoutStringTest %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    withoutStringTest test = new withoutStringTest();%0A%0A    System.out.println(%22%3E%22 + test.withoutString(%22Hello there%22, %22llo%22) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.withoutString(%22Hello there%22, %22e%22) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.withoutString(%22Hello there%22, %22x%22) + %22%3C%22);%0A  %7D%0A%0A  public String withoutString(String base, String remove) %7B%0A    String result = base.replaceAll(remove, %22%22);%0A    result = result.replaceAll(remove.toUpperCase(), %22%22);%0A    result = result.replaceAll(remove.toLowerCase(), %22%22);%0A    %0A    return result;%0A  %7D%0A%0A%7D%0A

add task withoutString