public class Rectangle {private int w;private int h;public Rectangle(){ }public Rectangle( int w, int h) {this.w = w;this.h = h;}public double area() {double a=this.w;double b=this.h;return a*b;}}