I am getting an error in PrintF in the following java code.
The Error Is :
The method printf(String, Object[ ]) in the type PrintStream is not
applicable for the arguments (String, int)
The Code Is :
public class MyClass {
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
System.out.printf("The value i is: %d", i);
}
}
}
Why am I getting this error? I think I have written the code correct but why is eclipse considering it as an error ? What can i do to remove this error ? I have 64 Bit JDK 8 | Windows 7|Eclipse 4.3 Kelper |