I've got to print out the Ascii codes in a table format (10 chars per row...)
At the moment I have them printing all in order. However I'd like to print 10 characters then println and print another 10...
I believe I should be able to do this with an if (if there are 10 chars, println...)statement, but I can't seem to figure out the logic of how..
Please help...
My code so far:
public class Ascii {
public static void main (String[]args) {
for (int c=32; c<123; c++) {
System.out.print((char)c);
// if(
//System.out.println();
}
}
}