@@ -0,0 +1,1153 @@
+package codingbat.string1;%0A%0A/*%0A * Given two strings, append them together (known as %22concatenation%22) and %0A * return the result. However, if the strings are different lengths, %0A * omit chars from the longer string so it is the same length as %0A * the shorter string. So %22Hello%22 and %22Hi%22 yield %22loHi%22. %0A * The strings may be any length. %0A * %0A * minCat(%22Hello%22, %22Hi%22) = %22loHi%22%0A * minCat(%22Hello%22, %22java%22) = %22ellojava%22%0A * minCat(%22java%22, %22Hello%22) = %22javaello%22%0A */%0A%0Apublic class MinCatTest %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A%0A    MinCatTest test = new MinCatTest();%0A%0A    System.out.println(%22%3E%22 + test.minCat(%22Hello%22, %22Hi%22) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.minCat(%22Hello%22, %22java%22) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.minCat(%22java%22, %22Hello%22) + %22%3C%22);%0A  %7D%0A%0A  public String minCat(String a, String b) %7B%0A    String newB = %22%22;%0A    String newA = %22%22;%0A    %0A    if(a.length() %3C b.length())%7B%0A      newB = b.substring(b.length() - a.length(), b.length());%0A      return a + newB;%0A    %7D%0A    else if(b.length() %3C a.length())%7B%0A      newA = a.substring(a.length() - b.length(), a.length());%0A      return newA + b;%0A    %7D%0A    %0A    return a+b;%0A    %0A  %7D%0A%0A%7D%0A

add task minCat