Eclipse中使用printf报错 提示参数类型不对

报错信息:

The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double)

如果jdk的编译版本不同,语法也会不同

项目 》属性》Java complier》complier compliance lever:1.5

 

posted on 2019-04-01 23:03  乌云上  阅读(402)  评论(0编辑  收藏  举报

导航