所以我正在使用Eclipse为学校做一个项目。我一直对令牌“+”收到语法错误,++期望。语法错误++预期?
System.out.print ("End of Supplier transactions");
calcsuppliersummary();
System.out.print("The total interest of"+name+"is:" +interest+);
System.out.print("The supplier Ending Balance is:"+endbal+);
}
该错误出现在System.out.print行。
删除+结束。 – kosa
具体来说,删除利息和endbal结尾处的+。 –