Java Programming

Build 3 methods(no arguments) that will do the work (input, calculations and output) for each of the 3 different figures. Then in the 3 “if” statements (or Switch stmt) that you have to determine which figure was selected, you should now only have to call the methods, which will then do the input, calculation and print the results. (Remember, you will need to use “static” for each of the methods that you build, since you will be calling them from the “main” method, which is also static.)

I'm trying to Modify my code so it would work for the question above but I'm to figure out how to do that. Does anyone have suggestions?

Here my code:
import java.util.Scanner;
public class Area {

public static void main(String args[]) {
Scanner input = new Scanner(System.in); // input scanner

// calculated the area of the circle, square, and rectangle
String shape; // shape string
double radius, area, side, height, width;
System.out.print("Choose these letters C, S, or R:");
shape = input.nextLine();

// executable code
if (shape.equals("C")) {
System.out.println("Radius:");
radius = input.nextDouble();
area = 3.14 * radius * radius;
System.out.println("The area of the circle is " + area);
}
else {
if (shape.equals("S"))
{
System.out.println("Side:");
side = input.nextDouble();
area = side * side;
System.out.println("The area of the square is " + area);
}
else {
if (shape.equals("R"))
{
System.out.println("Height:");
height = input.nextDouble();
System.out.println("Width:");
width = input.nextDouble();
area = height * width;
System.out.println("The area of the rectangle is " + area);
}
else{
System.out.println("Invalid");
}
}
}
} //end main()
} // end class