0
Printf?
2 Answers
+ 9
I'm just trying to play a game called "Guess the Question" -_-
Yes, you can use printf in Java as follows:
int a = 3;
System.out.printf("The number is %d", a);
And you can print any statement using println() function too. This one is recommended:
System.out.println("The number is "+a);
+ 1
thanks



