Java Program to Reverse a String

Example to take a string from the user and make it reverse using StringBuilder() class and using for loop. The StringBuilder() class is used to modify a string. for example, the reverse of beginnersbook.in is ni.koobsrennigeb.