"Chen Yang" <NO****@hotmail.com> wrote in message
news:Ih*********************@news4.srv.hcvlny.cv.n et...
suppose there're three String a[], b[] and c[], the length are not fixed.
how can i make the format a[] b[] c[] so that three arrays align to the
left?
ok, i know it's stupid.. but i don't think using StringTokenizer to
implement my own format is a good idea... plez help me out, thanks a lot!
So there are three string arrays, and you want to print in columns?
Loop through each to find the longest one, then print each followed by
enough space to make them align.
I think there is a method in String that will repeat a character some number
of times.
-- glen