How to create a 2d array in java

Java
 int[][] arr = new int[m][n]; 
Source

Also in Java: