public String makeSothing(String text) {
StringBuilder result = new StringBuilder();
String[] words = text.split(" ");
for (String word : words) {
result.append(reverseWord(word)).append(" ");
}
return result.toString();
}
public String makeSothing(String text) {
StringBuilder result = new StringBuilder();
String[] words = text.split(" ");
if (words.length > 0) {
result.append(reverseWord(words[0]));
}
for (int i = 1; i < words.length; i++) {
result.append(" ").append(reverseWord(words[i]));
}
return result.toString();
}