Initial commit
This commit is contained in:
15
实验报告模板/实验报告4/ex4-2023.11.01版第4题分析/Test.java
Normal file
15
实验报告模板/实验报告4/ex4-2023.11.01版第4题分析/Test.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.ex4;
|
||||
|
||||
public class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
Table table=new Table("A1", 23, 1.8, 2.3, 0.8);
|
||||
double area=table.area();
|
||||
table.changeWeight(45);
|
||||
System.out.println(area);
|
||||
System.out.println(table.getWeight());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user