import java.util.*; public class StringUtilities { public Character getMiddleCharacter(String word){ return word.charAt((word.length() - 1)/2); } public String removeCharacter(String value, char charToRemove){ String a = value.substring(0, value.length() - 1); return a; // return value.substring(0, value.length() -1); } public String getLastWord(String value) { return value.substring(value.lastIndexOf(" ") +1) ; } }