ERRO ECLIPSE JAVA: The method printf(String, Object[]) in the type PrintStream is not applicable...

Описание к видео ERRO ECLIPSE JAVA: The method printf(String, Object[]) in the type PrintStream is not applicable...

Como corrigir o erro do Java para usar o printf ajustando o números de casos decimais (exemplo: System.out.printf("%.2f%n", x),

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

Erro:
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 Main.main(Main.java:12)

Комментарии

Информация по комментариям в разработке