See More

public class TwoDimensionalArray { public static void main(String[] args) { int[][] a = new int[2][3]; a[1][2] = 5; int[][] b = new int[2][]; b[0] = new int[3]; b[0][2] = 5; int[][] c = new int[]{{1, 2, 4}, {4, 5}, {6, 7, 8, 9}}; } }