
The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments
Publicado por Novateando (1 intervención) el 25/06/2014 04:51:05
Muchachos estoy empezando con eclipse y peco de novato con sw...
Descargue Eclpse Kepler y estoy intentando usar printf pero tengo problemas, si alguien me puede ayudar agradecido... Les dejo un ejemplo bàsico del error
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, int, int, int)
Descargue Eclpse Kepler y estoy intentando usar printf pero tengo problemas, si alguien me puede ayudar agradecido... Les dejo un ejemplo bàsico del error
1
2
3
4
5
6
7
8
9
10
11
public class Variables {
public static void main(String[] args) {
int x = 5;
int y = 4;
System.out.printf("La suma de %d y %d es de : %d", x,y,(x+y));
}
}
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, int, int, int)
Valora esta pregunta


0