public class StringMagic { public String reverseWordsInSentence(String sentence) { if(sentence == null){ return "INVALID"; }else if(sentence == ""){ return ""; } String[] words = sentence.split(" "); StringBuilder reversedSentence = new StringBuilder(); for(String word:words){ StringBuilder reversedStr = new StringBuilder(word).reverse(); reversedSentence.append(reversedStr).append(" "); } retur..