title: Array of Integers Comparing Integers VB.NET
body: <p>Basically I have and array of integers that vary in size. I need to compare each number to each other number and display which number is repeated. For example:</p>
  
  <pre><code>Dim ints() As Integer = {1,2,2,5,4,6}
  </code></pre>
  
  <p>The number that shows up more than once is 2.</p>
  
  <p>How can I run through the array and compare each integer with the numbers in the array. I tried a for loop but it didn't return the value I was looking for. I am new to VB.NET and do not understand fully.</p>