String Reverse in java
import org.apache.commons.lang.StringUtils;
public class Testing
{
public static void main(String[] args)
{
String words = "I am walking";
System.out.println("Letter Reverse : " + StringUtils.reverse(words));
System.out.println("Words Reverse " + StringUtils.reverseDelimited(words, ' '));
}
}
public class Testing
{
public static void main(String[] args)
{
String words = "I am walking";
System.out.println("Letter Reverse : " + StringUtils.reverse(words));
System.out.println("Words Reverse " + StringUtils.reverseDelimited(words, ' '));
}
}
Comments