Live Webinar: Prompt Engineering: Skill Everyone Must Learn Today
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
String Reverse Using StringUtils function in Java
WhatsApp
Alagunila Meganathan
Aug 03
2016
773
0
0
StringReverseUsingSt
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);
}
}
Java
Up Next
String Reverse Using StringUtils function in Java