I am trying to make a table of all the ASCII characters but am having some trouble. I have all the characters printed in a list order, but need to make it into about 10 columns across. Any help is really appreciated. Here is my code so far...
import corejava.*;
public class Ascii {
public static void main(String[] args) {
System.out.println("Standard ASCII Codes");
System.out.println("008 - BS");
System.out.println("009 - TAB");
System.out.println("010 - LF");
System.out.println("013 - CR");
for (int i = 33; i < 127; i ++){
Format.print(System.out, "%03d", i);
System.out.println(" - " + (char)i);
}
System.out.print("127 - DEL");
System.out.println("");
String prompt = Console.readString("Press Enter to Continue");
System.out.println("Extended ASCII Codes");
for (int i = 128; i < 256; i++){
System.out.println(i + " - " + (char)i);
}
}