System.out.printf("The Sum is %d%n" , sum);
and the error is The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, int)
System.out.printf("The sum is " + sum);
Works but What if i need to print
"The Sum of 5 and 6 is 11"
System.out.printf("The sum of %d and %d is %d . " ,a,b,sum);
But got the above error on Eclipse Platform Version: 3.8.1 (Ubuntu)