报错信息:

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

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

 

相关文章:

  • 2021-10-29
  • 2021-08-31
  • 2021-11-17
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2021-12-24
  • 2021-07-14
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案