Arrays and Replacing Duplicates
For an assignment for my AP Java class, we need to create a method that can replace the duplicate values in an integer array. For example, if we had an array "1,1,2,3,4,5,5", I would need to recognize that there are duplicates in the array, then randomize a number to replace it, then check for duplicates again. I have tried for about a week, using many different methods, and all attempts have been unsuccessful. Any help would be appreciated. I think my trouble is really understanding how the method has to go about changing the array.
Thanks!
AB