recursive method reverse()
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: recursive method reverse()

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    recursive method reverse()

    Write a recursive method void reverse() that reverses a sentence.
    For example:
    Sentence greeting=new Sentence("Hello!";
    greeting.reverse9);
    System.out.println(greeting.getText())...
    prints the string "!olleH". Implement a recursive soloution by removing the first character, reversing a sentence consisting of the remaining text, and combining the two.

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,474

    Re: recursive method reverse()

    Just posting your homework without giving any indications of having attempted it yourself won't get you any help around here.

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center