// // Review for Java // // Goal: read in two sides of the rectangle and // out its area // import java.util.Scanner; public class RectangleArea { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Type in the length: "); // prompt double length = input.nextDouble(); // input System.out.print("Type in the width: "); double width = input.nextDouble(); double area = length * width; System.out.println("Area = " + area); } }