Results 1 to 2 of 2
  1. #1
    Inaam is offline Member
    Join Date
    Mar 2009
    Rep Power

    Exclamation Reversing the String

    Can any one tell me about how to reverse a String passes to a method through recursion?

    Thanks in advance!

  2. #2
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Rep Power


    its not the best solution to reverse a string, but you could check the string length and pass a substring-1 on every recursion. Take a look at the String API for some ideas.
    Get NotePad++ (free)

Similar Threads

  1. Reversing and inputting files
    By jigglywiggly in forum New To Java
    Replies: 14
    Last Post: 03-23-2009, 08:28 AM
  2. Reversing
    By whosadork in forum New To Java
    Replies: 14
    Last Post: 11-06-2008, 04:29 AM
  3. Reversing String
    By mew in forum New To Java
    Replies: 4
    Last Post: 12-02-2007, 09:42 PM
  4. reversing Strings
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-11-2007, 08:24 PM
  5. reversing a string
    By toad in forum New To Java
    Replies: 5
    Last Post: 11-07-2007, 09:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts