So...what are you trying to do. What is the needed output?
public static void main(String[] args) { // Print Header System.out.println("Multiplication Table:"); for(int i = 0; i <= 10; i++) { for(int j = 0; j <= 10; j++) { System.out.print( (j * 1) + "\"); } System.out.println(""); } } } |
0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 BUILD SUCCESSFUL (total time: 0 seconds) |