Write a recursive method string reversestring text that


Problem

1. Given a class Rectangle with instance variables width and height, provide a recursive get Area method. Construct a rectangle whose width is one less than the original and call its get Area method.

2. Given a class Square with instance variable width, provide a recursive get Area method. Construct a square whose width is one less than the original and call its get Area method.

3. Write a recursive method String reverse(String text) that reverses a string. For example, reverse("Hello!") returns the string "!olleH". Implement a recursive solution by removing the first character, reversing the remaining text, and combining the two.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a recursive method string reversestring text that
Reference No:- TGS02636678

Expected delivery within 24 Hours