title: Java Input scanner to array multidimensional
body: <p>I want to display an array of input that I input. and in print automatically. I want to display the array of input values ​​that I input. and will be printed automatically.</p>
  
  <p>my code like this :</p>
  
  <pre><code>public class ReadArray {
  
      /**
       * @param args the command line arguments
       */
      public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  System.out.print("Input total row : ");
  int row = sc.nextInt();
  System.out.print("Input total column : ");
  int column = sc.nextInt();
  
  int [][] matrix = new int[row][column];
  for (int i = 0; i &lt; row; i++)
  {
      for(int j = 0; j &lt; column; j++) {
          System.out.println("Row ["+i+"]:  Column "+j+" :");
      matrix[i][j] = sc.nextInt(); 
  }
  
  }
  
  
  
      }
  
  }
  </code></pre>
  
  <p>I want results like this : </p>
  
  <p>Input total row : 2
  Input total column : 2</p>
  
  <p>Row [0]:  Column  0 :
  1</p>
  
  <p>Row [0]:  Column 1 :
  2</p>
  
  <p>Row [1]:  Column  0 :
  10</p>
  
  <p>Row [1]:  Column 1 :
  11</p>
  
  <p>Data Array 1 : 1,2
  Data Array 2 : 10,11</p>
  
  <p>anyone can help me please.</p>