public class Matrix {
  public static void main(String argv[]) {
    // create a 2x3 matrix (2 rwos and 3 columns)
    int matrix[][] = {{1, 2, 3}, {6, 7, 8}};

    // print the elements of the matrix
    for(int i=0;i<matrix.length;i++) {
     for(int j=0;j<matrix[i].length;j++) {
       System.out.println(matrix[i][j]);
     }
    }
  }
}
