// package dome;
public class Rectangle {
private int length;
private int width;
public int area(){
return this.length*this.width;
}
public Rectangle(int length,int width){
this.width=width;
this.length=length;
}
public static void main(String[] args){
Rectangle r1=new Rectangle(8,6);
Rectangle r2=new Rectangle(7,7);
System.out.println(r1.area());
System.out.println(r2.area());
}
}