+ 1
Can anybody tell me the difference between printf() and println()?
2 Respostas
+ 3
in printf() you can put data specifiers..
for ex.
string name="rob";
printf("hello %s", name);
in println() you cannot put data specifiers. to achieve what we did above we can do the following:
for ex..
String name="rob";
System.out.println("hello " + name);
I hope you understood..
0
read the intro again