Files
java-homework/实验3/src/test4/test.java
T
2024-06-11 01:53:01 +08:00

13 lines
323 B
Java
Executable File

//test.java
package test4;
import java.util.Scanner;
public class test {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
Yard y1 = new Yard(input.nextDouble(), input.nextDouble());
System.err.println(y1.getPerimeter()+" "+y1.getAcreage());
}
}