Java printf formatting to print items in a table or columns

I would use this:

System.out.printf ("%-30s %1.7f %s%n", word, etc, etc2);

Leave a Comment