PDA

Click to See Complete Forum and Search --> : formatting text output fields in java


sarath_777
Mar 12th, 2001, 02:18 PM
hi,
i am writing outputs from a program that lists
name, SSN, salary,etc in columns. .. How do I format
the fields so that all column data line up
cleanly ?

what packages should i have to use ?
thanks
sarath

Mar 12th, 2001, 03:58 PM
See my answer to Q3 at
http://forums.vb-world.net/showthread.php?s=&postid=262504&highlight=align#post262504

The java.text.DecimalFormat or java.text.DecimalFormatSymbols classes.