Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
System.out.printf("%5.5s", "Item:");
System.out.printf("%10.5s", "Cost:");
System.out.printf("%10.6s", "Total:");
//Item: Cost: Total:
Using the printf command it is easy to organize grids or word positioning. The pattern of the printf command is hard to remember, however once it is memorized it might make future projects much easier.
Thursday, October 18, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment