Hi.
I wonder if it is possible to make a fixed tab (tabulator) in Java in order to print text in straight columns.
In the example below I sometimes need to use one Java-tab and sometimes two in order to make two straight columns. But if a new animal is added, I don't know what number of tabs I need to add!
System.out.println("Ape" + "\t\t" + "Brown")
System.out.println("Pig" + "\t\t" + "Pink")
System.out.println("Hippopotamous" + "\t" + "Grey")
System.out.println("Hummingbird" + "\t" + "Unknown color")
Edited by: suladna on Oct 28, 2008 11:27 AM