[求助]java 编译时出现一大堆非法字符,我找不出错误!
java 编译时出现一大堆,非法字符,搞的我都晕了,!!程序代码:
class Jixing{
private double width;
private double height;
Jixing(double width,double height){
this.width=width;
this.height=height;
}
public double area(){
double area1;
area1=width*height;
return area1;
}
}
public class Jinxingdome{
public static void main(String[] args){
Jixing ara=new Jixing(3,4);
System.out.println("矩形的面积为:"+ara.area());
}
}
[此贴子已经被作者于2007-11-14 17:28:46编辑过]