i really want to know how to make a ASCII table like this.
QUOTE
0 1 2 3 4 5 6 7 8 9
30 ! " # $ % & '
40 ( ) * + , - . / 0 1
50 2 3 4 5 6 7 8 9 : ;
60 < = > ? @ A B C D E
70 F G H I J K L M N O
80 P Q R S T U V W X Y
90 Z [ \ ]^ _ ` a b c
100 d e f g h i j k l m
110 n o p q r s t u v w
120 x y z { | } ~ ? ?
30 ! " # $ % & '
40 ( ) * + , - . / 0 1
50 2 3 4 5 6 7 8 9 : ;
60 < = > ? @ A B C D E
70 F G H I J K L M N O
80 P Q R S T U V W X Y
90 Z [ \ ]^ _ ` a b c
100 d e f g h i j k l m
110 n o p q r s t u v w
120 x y z { | } ~ ? ?
rows and cloumns.
this is what i have done so far
CODE
public class DisplayChars {
public static void main(String[] args) {
int value;
for (int j=0; j<= 9; j += 1)
System.out.print("\t" + j);
for (int i = 30; i <= 120; i+= 10) {
value = ((char)i);
System.out.print("\n" + i + "\t" +(char)i);
}
}
}
public static void main(String[] args) {
int value;
for (int j=0; j<= 9; j += 1)
System.out.print("\t" + j);
for (int i = 30; i <= 120; i+= 10) {
value = ((char)i);
System.out.print("\n" + i + "\t" +(char)i);
}
}
}
and i cant get the ASCII characters to line up.



