<<< Commonly Used String Methods | Index | printf argument list >>> |
Two oveloaded methods printf yield output on the standard output device:
System.out.printf( formatString ); System.out.printf( formatString, argumentList );
Here, formatString is a string specifying the format of the output, and argumentList is a list of arguments.
The argumentList is a list of arguments that consists of constant values, variables, or expressions
If there is one argument, the output is similar to System.out.print():
System.out.printf( "Hello there!" ); // uses only the format string
NOTE: String method format also uses syntax similar to printf
<<< Commonly Used String Methods | Index | printf argument list >>> |