What is the meaning of each of these format strings?
{0,-8} {3,6} {2,8:#0.00}
{5,10:#.00} {4,12:#,##0.00}
Ans: {0,-8} Argument 0, left justified, field width 8.
{3,6} Argument 3, right justified, field width 6.
{2,8:#0.00} Argument 2, right justified, field width 8,
print 0 to left of decimal point even if
value is less than 1.
{5,10:#.00} Argument 5, right justified, field width 10,
do not print 0 to left of decimal point if
value is less than 1.
{4,12:#,##0.00} Argument 4, right justified, field width 12,
print 0 to left of decimal point even if
value is less than 1, use commas every
three digits.