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

猜你喜欢

转载自www.cnblogs.com/1906859953Lucas/p/10639891.html
今日推荐