/* Example application Required header comments have been omitted */ public class MultiplicationTables { public static void main (String[] args) { // print column headers here: for (int j = 0; j<4; j++) System.out.print("\t" + j); System.out.println(); for (int i = 0; i<4; i++) { // 1st print out what row we're on: System.out.print (i + "\t"); // do the elements in the table here: for (int j = 0; j<4; j++) System.out.print (i*j + "\t"); System.out.println(); } } }