/* print the ASCII table with 10 characters per line (include the decimal equivalent). * NOTE: I am only printing the visible characters, which start at 33 */ public class Prog5_15 { public static void main(String[] args) { int count = 0; // used to count the number of chars per line to start a new line for(int i=33;i<128;i++) // iterate through the visible charaters { System.out.print(i + "\t" + (char)i + "\t\t"); // output the int value and the character count++; // we've now output 1 additional char in this line if(count%10==0) System.out.println(); // every 10th character output a new line character } } }