import org.apache.commons.lang.StringUtils;
public class StringReverseUsingStringUtils
{
public static void main(String[] args)
{
String string = "Hi, How R YOU?";
String reverse = StringUtils.reverse(string);
String delimitedReverse = StringUtils.reverseDelimited(string, ' ');
System.out.println("\nThe original String: " + string);
System.out.println("The reversed string: " + reverse);
System.out.println("The delimited Reverse string: " + delimitedReverse);
}
}In this code, I am going to explain about theString Reverse Using StringUtils function in Java
