Do Java String has Reverse method, if not how to achieve?
Java.lang.String do not have any inbuilt method as Reverse() to reverse a String, rather we can use Java.lang.StringBuffer which has an inbuilt Reverse() method. Let’s see the implementation – Using String – We are taking individual characters from the str and printing in reverse order. Using StringBuffer – Hope this helps!