title: Compare elements in an array for duplicates
body: <p>I am trying to generate a 5 digit <code>int</code> array in Java and am having trouble on where to start. None of the numbers in the array can be duplicates. I can generate random numbers for it fine but just cant figure out how to compare the numbers to each other and replace any duplicates.</p>