求指点,自己看不出来问题
import java.util.Scanner;
public class Rectangle {
public static void main(String[] args) {
try (Scanner reader = new Scanner(System.in)) {
double width;
double height;
double grith;
double area;
width=reader.nextInt();
height=reader.nextInt();
double showGrith(double a,double b) {
width=a;
length=b;
grith = (width+height)2;
return grith;
}
double showArea(double width,double height) {
area=widthheight;
return area;
}
System.out.println(grith);
System.out.println(area);
}
}
}