Im trying to make a table that prints numbers from 0 to 255 in decimal format. The print out should be 16 numbers per line using printf and %5d format. I made a code but idk how to make it enter after every 16 numbers.
for(int x = 0; x <255;x++) {
System.out.printf("%5d\n",x);
But it prints out in a line lol.