上传了实验三,已确认无敏感信息

This commit is contained in:
2024-06-10 16:39:18 +08:00
parent f1190f2c2f
commit 5191778415
13 changed files with 234 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
//Cone.java
package test2;
public class Cone {
double buttom;
double height;
public void set(double buttom, double height) {
this.buttom = buttom;
this.height = height;
}
public Cone() {
}
public void disaplay() {
System.out.println(
"This cone's buttom area is " + buttom + ", height is " + height + ", volume is "
+ buttom * height / 3);
}
}