This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes reverse a string without using built in methods. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "reverse a string without using built in methods." Watch "reverse a string without using built in methods." New topic
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
    
    6

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
    
    3

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
    
    2

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)]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: reverse a string without using built in methods.
 
Similar Threads
code for splitting string into characters
String length without using String.length() method
String revers with out using built functions
String Revers
Converting int to string W/OUT toString, etc.