title: How to find duplicate elements in an array of an array?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3951547/java-array-finding-duplicates">Java Array, Finding Duplicates</a>  </p>
  </blockquote>
  
  
  
  <p>I have this array</p>
  
  <pre><code>int[][] array = {{1,2,3,4}, {5,6,2,8}, {9, 10, 11, 12}, {13, 14, 15, 16}};
  </code></pre>
  
  <p>If there are duplicate elements in this array, i need to return false.
  For example index [0][1] and [1][2] are equal. I need a method that detects this. Also it would be nice if the solution only used primitives, arrays, and loops.</p>