Click
here
for the codes below.
Click
here
for additional information about
printf.
System.out.printf(format, arguments);
int Score = 100; String name = "Tom Anthony"; System.out.printf("%s got his score at %d.\n", name, Score);
The %s
and
%d
are place holders.