@@ -0,0 +1,615 @@
+public String wordEnds(String str, String word) %7B%0A  String out = %22%22;%0A  %0A  for (int i=0; i%3Cstr.length(); i++) %7B%0A    // Create a string to compare to word.%0A    String test;%0A    if (i %3C str.length() - word.length()) test = str.substring(i, i+word.length());%0A    else test = str.substring(i);%0A%0A    // Compare the test string to the word%0A    if (test.equals(word)) %7B%0A      // Before%0A      if (i %3E 0) %7B%0A        out += Character.toString(str.charAt(i-1));%0A      %7D%0A      // After%0A      if (i %3C str.length()-word.length()) %7B%0A        out += Character.toString(str.charAt(i+word.length()));%0A      %7D%0A    %7D%0A  %7D%0A%0A  return out;%0A%7D%0A

Create wordEnds.java