• Post Reply Bookmark Topic Watch Topic
  • New Topic

reverse a string without using built in methods.  RSS feed

 
prasad chowdary
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Umang Bhatt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[mg]Edited out ready made solution
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Umang

Please refer to Jeff's post above regarding providing solutions in this way.
 
Stanley Mungai
Ranch Hand
Posts: 155
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
saxena neera
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!