thumpkidd9
Programmer
Hello,
I have always wondered this but finally had to implement something that needed it. I want to print values to the screen but with some kind of order. I'm using println() with '\t' character but its not lining up at all. I know there must be a better way to line up the data, which can be entered dynamically so I dont know the size of the space needed. I'm looking for something like this. Nothing too in depth but clean.
No. Price Paid
1. 20.00 30.00
Thanks,
I have always wondered this but finally had to implement something that needed it. I want to print values to the screen but with some kind of order. I'm using println() with '\t' character but its not lining up at all. I know there must be a better way to line up the data, which can be entered dynamically so I dont know the size of the space needed. I'm looking for something like this. Nothing too in depth but clean.
No. Price Paid
1. 20.00 30.00
Thanks,