I'm currently writing a program to print the values of the ascii table, and have run in to the issue that characters 0-32 will just leave a blank space in my chart, or at the worst, it will print the backspace, new line, tab, or similar characters and disorganize my chart.
Here's the line that prints each segment of my table inside of a loop, Where i
is the decimal representation of the character I want to print.
System.out.print(i+"\t"+((char) i)+"\t");
Is there any easier way to print each the control characters without reformatting my table other than a switch structure that will handle all characters between 0-32?