class JuXingTest {
int chang;
int kuan;
public int mianJi(int x,int y ) {
int mian = x * y;
return mian;
}
public int zhouChang(int x,int y) {
int zhou = 2 * (x + y);
return zhou;
}
}
class JuXing {
public static void main(String[] args) {
JuXingTest s = new JuXingTest();
s.chang = 5;
s.kuan = 9;
System.out.println(mianJi(s.chang,s.kuan));
System.out.println(s.zhouChang(s.chang,s.kuan));
}
}
这个程序为啥会报错?求帮助! |
|