@@ -0,0 +1,308 @@
+// http://codingbat.com/prob/p131516%0A%0Apublic String sameEnds(String string) %7B%0A  String result = %22%22;%0A  %0A  for (int i = 0; i %3C (string.length() / 2) + 1; ++i) %7B%0A    if (string.substring(0, i).equals(string.substring(string.length()-i))) %7B%0A      result = string.substring(0, i);%0A    %7D%0A  %7D%0A  %0A  return result;%0A%7D%0A

Create sameEnds.java