Original Post
Hello, I am just finishing up my Amortization Table when I noticed that since I had to integrate tabbing in my application, my "thrown-together" table will ocassionally go out of alignment due to text exceeding a tab's pre-determined length. Ex. I have System.out.print(Somvar + "\t\t" + Somvar2 + "\t\t" + Somevar3);
100 150 300
100000000000 150 300
If the first or second happen to exceed the tab's length, then all the following are pushed forward and the table alignment is messed up. Is there a way to conteract this in java? I was thinking about converting the variables to strings, counting the characters, and having an if statement that will adjust the number of tabs in relation to how many characters. Thank you. [Edited by - Xiachunyi on September 5, 2005 11:38:13 PM]