for (int i = 0; i < words.length; ++i) { String word = words[i]; String reverseWord = new StringBuilder(word).reverse().toString(); }