java how to ccreate 2d array code example Example: 2d array java int[][] arr = new int[10][20]; arr[0][0] = 1;