title: Searching for repeated entries in a 2d integer array
body: <p>I have a 2d integer array which has 3 numbers in each index.</p>
  
  <p>For example:</p>
  
  <pre><code>   examplearray=new int[][]
     {
  
          {0, 0, 0},
          {0, 1, 0},
          {0, 0, 1},
          {1, 0, 1},
  
     };
  </code></pre>
  
  <p>I want to find out whether the first two numbers in each index match with the first 2 numbers at any other index.</p>
  
  <p>In this example, <code>{0,0,0}</code> and <code>{0,0,1}</code> both have the same first two numbers. I'd like to create a code which can indicate this.</p>