Java Code:
public class Test2Darray {
  public static void main(String args[]) {
    int[][] multiD = {
      { 1, 2, 3, 4 },
      { 5, 6, 7 }
    };
    System.out.println("The element at [0][2] is " + multiD[0][2]);
  }
}