Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

In java how do I print out a "table" of numbers with all of the decimal points lined up, ie i.e. fixed length fields with a fixed number of digits after the decimal point. I have played around with DecimalFormat but I can't get leading blanks, only leading zeros.

...

More info on formating is available here:

http://java.sun.com/javase/6/docs/api/java/util/Formatter.htmlImage Removed