I am trying to generate a 5 digit int array in Java and am having trouble on where to start. None of the numbers in the array can be duplicates. I can generate
int
You can use a java.util.Set instead of an array as it is guaranteed to have only unique elements.