March 20th, 2009, 11:55 AM
recursive method reverse()
Write a recursive method void reverse() that reverses a sentence.
Sentence greeting=new Sentence("Hello!";
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.
March 20th, 2009, 12:24 PM
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
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!