在eclipse中使用System.out.printf()报错

错误描述:The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String,int)

错误和JDK的本版相关,具体的原因是Compiler comlicance level的数值太低。将Compiler comlicance level设置为大于1.5,重新建立工程即可。

解决方法:
Window >> Properties >> Java >> Compiler >> Compiler comlicance level。
在eclipse中使用System.out.printf()报错

相关文章:

  • 2021-07-21
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-26
  • 2021-09-30
  • 2021-12-31
  • 2022-03-01
  • 2022-12-23
  • 2021-09-17
  • 2021-06-14
相关资源
相似解决方案