Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java Micro Edition
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java Micro Edition
how to get reverse string
nagarjuan pula
Greenhorn
Posts: 9
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
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
Greenhorn
Posts: 13
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I think this will help you
String as="htapmas";
String temp="";
for(int x=as.length()-1;x>-1;x--){
temp+=as.charAt(x);
}
System.out.println(temp);
Eduardo YaƱez Parareda
Ranch Hand
Posts: 93
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Or you can use
http://download.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/java/lang/StringBuffer.html#reverse()
to do that.
http://blindcoder.wordpress.com
nagarjuan pula
Greenhorn
Posts: 9
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you sampath.its working
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
reversing a string using recursion
Regarding String Object Reversing
Return a reversed number
Stringreversal
how to get reverse string
More...