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