求大神帮忙指出一下哪里错了!!!
我是初学者,正在学java,但是我按着书上的代码敲,结果它还是会报错,什么缺少;什么需要标识符的。我找了好久还是没找到,已经不知道是什么原因了。


这是程序代码
程序代码:class Box{
double width;
double height;
double depth;
double volume(){
return width*height*depth;
}
void setDim(double w, double h, double d){
width=w;
height=h;
depht=d;
}
}
class BoxTest{
public static void main(String[] s)
Box myBox=new Box();
Box hisBox=new Box();
double myVol,hisVol;
myBox.setDim(10, 20, 15);
hisBox.setDim(3, 6, 9);
myVol=myBox.volume();
hisVol=hisBox.volume();
System.out.println("myBox is"+myBox);
System.out.println("hisBox is"+hisBox);
}








