This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes how to get reverse string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to get reverse string" Watch "how to get reverse string" New topic

how to get reverse string

nagarjuan pula

Joined: Sep 20, 2010
Posts: 9

can any one can explain how to display the given string as reverse string. if you have example code post that.

thanks in advance.
sampath premarathna

Joined: Oct 05, 2010
Posts: 13
I think this will help you

String as="htapmas";
String temp="";
for(int x=as.length()-1;x>-1;x--){
Eduardo Yañez Parareda
Ranch Hand

Joined: Oct 09, 2008
Posts: 92

Or you can use to do that. - Simplest Ever REST Framework for Java
nagarjuan pula

Joined: Sep 20, 2010
Posts: 9
Thank you sampath.its working
subject: how to get reverse string