class RectTest {
public static void main(String[] args) {
Rect r = new Rect();
Scanner sc = new Scanner(System.in);
System.out.println("请输入长方形的长:");
r.length = sc.nextInt();
System.out.println("请输入长方形的宽:");
r.width = sc.nextInt();
int zhouChang = r.getZhouChang();
int area = r.getArea();