/** * The MultiplicationTable class uses a 2-dimensional * array of characters to hold the contents of the * row and column multiplied together. * * @author Erica Eddy * @version November 2009 */ import java.util.*; public class MultiplicationTable { // Fill the table with the row and column entries // multiplied together. // Note that the position numbers are adjusted so // that the multiplication is easier. public static void fillTable(int [] [] tbl) { for (int r = 1; r <=tbl.length; r++) { for (int c = 1; c <= tbl[r-1].length; c++) { tbl[r-1][c-1] = r * c; } } } // print the table contents public static void printTable(int [] [] tbl) { for (int r = 0; r