define 2d array from 2 1d array java code example Example: How to create a 2d array in java int[][] arr = new int[m][n];