Quando digito o seguinte código no Eclipse:
public class ImprimeX {
public static void main(String[] args) {
double x = 1.25;
System.out.printf("%f", x);
}
}
surge a seguinte mensagem:
The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double)
Alguém consegue identificar onde está o erro?
