declare 2d array java with values code example Example: 2d array java char[][] array = new int[rows][columns];