accessing 2d array java code example Example: two dimensional array in java example program int[][] a = new int[3][4];