Hi all.
Look at the out put of the given program below
Program:
Output:
ferrari ferrari
mclaren mclaren
lamborghini lamborghini
All are A class cars All are A class cars
Fiat Fiat
I am getting the out put in a mixed up manner. Is there any way so the i can arrange the output in column format. Some what all String a elements in first column and String b elements in other column.
Thanks and Regards
alexander
>
pete stein
Bartender
Joined: Feb 23, 2007
Posts: 1561
posted
0
Look at the Formatter class, or String.format(...) or System.out.printf(...). The second two guys are based on Formatter and obey its rules.
e.g.,
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.