Click to See Complete Forum and Search --> : vertical text alignment (java)


lavina
04-14-2004, 11:28 PM
Does anyone know how to get a text to align vertically like so:

A
B
C
D
D

I just need to know if there is a source code or if using a statement such as this will work:

String str = "ABCDE";for (int i = 0; i < str.length(); i++) { System.out.println(str.charAt(i)); }

Anyhelp..suggestions..codes..would be nice, thanks!

btw i'm making this program using Blue j.

buntine
04-15-2004, 12:57 AM
The source snippet you provided should do the job perfectly. But please, can you post these question in the Other forum?