Initial commit

This commit is contained in:
2025-11-06 10:29:13 +08:00
commit 0becd14830
318 changed files with 7145 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package Exp3.Task1;
public class Test1 {
public static void main(String[] args) {
Rectangle rect1 = new Rectangle(5, 3);
System.out.println("矩形1周长: " + rect1.getC());
System.out.println("矩形1面积: " + rect1.getArea());
Rectangle rect2 = new Rectangle(1, 6, 6, 2);
System.out.println("矩形2周长: " + rect2.getC());
System.out.println("矩形2面积: " + rect2.getArea());
}
}