title: How to get 2D subarray from 2D array in JAVA?
body: <p>Suppose I have 2D array as follow:</p>
  
  <pre><code>int[][] temp={
                {1,2,3,4},
                {5,6,7,8},
                {9,10,11,12}};
  </code></pre>
  
  <p>and i want to get sub-array start from X direction 1 to 2 and Y direction 1 to 2 i.e. </p>
  
  <pre><code>{6,7}
  {10,11}
  </code></pre>
  
  <p>can anyone give me solution for above problem.</p>