求助,TestClass.java:51:错误:不是语句 "佣 金:" + comm ;
class Emp{
private int empno;
private String ename;
private String job;
private double sal;
private double comm;
publice Emp(){
}
public Emp(int eno , String ena , String j ,double s ,double c){
setEmpno(eno);
setEname(ena);
setJob(j);
setSal(s);
setComm(c);
}
public void steEmpno(int eno){
empno = eno;
}
public void setEname(String ena){
ename = ena;
}
public void setJob(String j){
job = j;
}
public void setSal(double s){
sal = s;
}
public void setComm(double c){
comm = c;
}
public int getEmpno(){
return empno;
}
public String getEname(){
return ename;
}
public String getJob(){
return job;
}
public double getSal(){
return sal;
}
public double getComm(){
return comm;
}
public String getInfo(){
Return "雇员编号:" + empno + "\n" +
"雇员姓名:" + ename + "\n" +
"雇员职位:" + job + "\n" +
"基本工资:" + sal + "\n" +
"佣 金:" + comm ;
}
}
完整代码是这样的,跟书上原句对比过多次,并没找到哪里有问题,有大佬帮我看下最后错在哪里吗