// Scott DeRuiter 7/24/2002 // TwoDArray3.java // Third 2D array example public class TwoDArray3 { public static void main (String[] args) { int[][] table = new int[250][18]; int row, col; for (row = 0; row < table.length; row++)for (col = 0; col < table[row].length; col++)table[row][col] = row + col; System.out.println ( "\n\n" ); for (row = 0; row < table.length; row++) { for (col = 0; col < table[row].length; col++)System.out.print ( Format.right ( table[row][col], 4 ) ); System.out.println ( ); } System.out.println ( "\n\n" ); } }