| Author |
reverse a string without using built in methods.
|
prasad chowdary
Greenhorn
Joined: Feb 18, 2012
Posts: 17
|
|
hi experts,
how to reverse a string without using built in methods.
eg)"john is a boy" and print "yob a si nhoj".
Thanks in advance, please send me the code its useful to me.
|
 |
Jeff Verdegan
Bartender
Joined: Jan 03, 2004
Posts: 6109
|
|
prasad chowdary wrote:hi experts,
how to reverse a string without using built in methods.
eg)"john is a boy" and print "yob a si nhoj".
It depends what you mean by "build-in methods". You have to use at the very least one "built-in" method, else it's not possible. Clearer requirements are needed for a meaningful answer.
Thanks in advance, please send me the code its useful to me.
No. This site is NotACodeMill.(⇐ click) You are expected to ShowSomeEffort(⇐ click) and DoYourOwnHomework.(⇐ click)
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12952
|
|
This is a question that's asked every now and then. I suspect this is a standard homework on interview question somewhere.
When you do a seach for "java reverse string without built-in methods" you'll find a number of answers.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
Umang Bhatt
Greenhorn
Joined: Aug 24, 2011
Posts: 3
|
|
|
[mg]Edited out ready made solution
|
http://bhattumang.blogspot.in/
http://www.facebook.com/bhattumang7897
|
 |
James Boswell
Ranch Hand
Joined: Nov 09, 2011
Posts: 657
|
|
Umang
Please refer to Jeff's post above regarding providing solutions in this way.
|
 |
Stanley Mungai
Ranch Hand
Joined: Dec 09, 2011
Posts: 155
|
|
Thanks in advance, please send me the code its useful to me.
Oh, You need to show some effort, Asking for a code is just not a right way to learn Programming. Let us see what you have and we might be able to help.
|
Give a beggar a fish; feed him for a day. Teach him how to fish; Feed him for a lifetime.
|
 |
saxena neera
Greenhorn
Joined: Apr 21, 2012
Posts: 10
|
|
prasad chowdary wrote:hi experts,
how to reverse a string without using built in methods.
eg)"john is a boy" and print "yob a si nhoj".
Thanks in advance, please send me the code its useful to me.
Here is the solution..
[Moderator action: Solution removed. Saxena Neera, please LetThemDoTheirOwnHomework(⇐click) and DontBeACodeMill.(⇐click)]
|
 |
 |
|
|
subject: reverse a string without using built in methods.
|
|
|