This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Stringreversal
 
Similar Threads
WA #1.....word association
ResultSet to Array
date format with MS Access database
Tech Word Game
How to convert byte array into string array?