aspose file tools*
The moose likes Beginning Java and the fly likes Stringreversal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Stringreversal" Watch "Stringreversal" New topic
Author

Stringreversal

Gurram Ravi
Greenhorn

Joined: Apr 17, 2006
Posts: 2
hello All......

how to make a string reverse using with string tokenizer?
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Stringreversal