为了账号安全,请及时绑定邮箱和手机立即绑定

Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double) at MainClass.main(MainClass.java:16) 是什么意思

Exception in thread "main" java.lang.Error: Unresolved compilation problem:   The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double)   at MainClass.main(MainClass.java:16) 是什么意思

正在回答

1 回答

传入的参数类型不对,printf(String,Object[]),需要一个Object数组.你传进去的是一个double,需要new一个数组,把你要传的double放进去.

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double) at MainClass.main(MainClass.java:16) 是什么意思

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号