Java repeat last 3 letters of string code example Example: Java repeat last 3 letters of string word + word.substring(word.length()-3, word.length())