//import java.utils.*; public class StringUtilities { public Character getMiddleCharacter(String word){ return word.charAt(word.length()/2); } public String removeCharacter(String value, char charToRemove){ String s=""; s=s+charToRemove; String str=""; str =str+value.replace(s,""); return str; } public String getLastWord(String value) { //int n=value.length(); String str=value.substring(value.lastIndexOf(" ")+1); return str; } }