Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stringreversal

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic