Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
student:java:formatting [2018/08/10 13:09] – bernstdh | student:java:formatting [2018/08/10 13:09] (current) – bernstdh |
---|
The format string in the invocation of the ''%%format()%%'' method should have the same number of format specifiers as there are other parameters in the invocation. This is illustrated in the following example. | The format string in the invocation of the ''%%format()%%'' method should have the same number of format specifiers as there are other parameters in the invocation. This is illustrated in the following example. |
| |
<code> | <code java> |
int year = 2017; | int year = 2017; |
double sales = 1050987.00; | double sales = 1050987.00; |