I am making a basic spreadsheet program, and by default I have the cell width set to 12 spaces. I am using printf to do this.
System.out.printf("%12s|", rowsAndColumns[i][j]);
How can I do something like.
System.out.printf("%cellWidths|", rowsAndColumns[i][j]);
Is this even possible?
Thanks.