This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stringreversal  RSS feed

 
Gurram Ravi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello All......

how to make a string reverse using with string tokenizer?
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gurram Ravi:
hello All......

how to make a string reverse using with string tokenizer?


The question not related to JSP, it should go Java in General.

You can use StringBuffer.reverse() method to reverse a string.
convert the String into StringBuffer and call the reverse() method which returns another StringBuffer and convert the new StringBuffer as string.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!