• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

reverse a string without using built in methods.

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[mg]Edited out ready made solution
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Umang

Please refer to Jeff's post above regarding providing solutions in this way.
 
Ranch Hand
Posts: 155
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic