public class Table{ public static void main(String[] args){ System.out.println(); System.out.print("x | "); for(int i = 1; i <= 9; i++){ System.out.print(i + "\t"); } System.out.println(); System.out.println("==+======================================================================="); for(int y = 1; y <= 12; y++){ System.out.print(y + " | "); for(int x = 1; x <= 9; x++){ System.out.print((x * y) + "\t"); } System.out.println(); } System.out.println(); } }