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(){ "雇员编号:" + empno + "\n" + "雇员姓名:" + ename + "\n" + "雇员职位:" + job + "\n" + "基本工资:" + sal + "\n" + "佣 金:" + comm ;}}
添加回答
举报
0/150
提交
取消