title: Extract data from 2d array java
body: <p>How can i extract data from a 2d array.. e and b are indexes of the array</p>
  
  <pre><code>int e = IO.readInt();
  
          int b = IO.readInt();
  
          int a[][] = { { 8, 2, 6, 5 }, // row 0
                  { 6, 3, 1, 0 }, // row 1
                  { 8, 7, 9, 6 } };
  
          for (int i = 0; i &lt; a.length; i++) {
  
              for (int j = 0; j &lt; a[0].length; j++) {
  
                  a[i][j] = i;
  
                  System.out.print(a[i][j] + " ");
              }
              System.out.println("");
          }`enter code here` 
  </code></pre>