reverse a string in java string builder code example Example: java string reverse String rev = new StringBuilder("Your String").reverse().toString();