2.
Create a Java file named "Shape eTester.java" to test the implementation. Write a repeatable
interactive menu, excluding the option to press the 'x' key. Your program output should look
like the following.
000
Blue): Terminal Window - FigureInterface
Please choose one the followings:
Press 'c' - Circle
Press 's' - Square
* Press 'r' - Rectangle
* Press 'x' - EXIT
3
Invalid command
Please choose one the followings:
Press 'c' - Circle
Press 's' - Square
Press 'r' - Rectangle
Press 'x' - EXIT
C
Please input the radius:
3
Area of circle = 28.274334
Perimeter of circle = 18.849556
Please choose one the followings:
Press 'c' - Circle
* Press 's' - Square
* Press 'r' - Rectangle
Press 'x' - EXIT