Results 1 to 2 of 2
Thread: Arrays and Replacing Duplicates
- 02-16-2011, 04:21 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 56
- Rep Power
- 0
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
- 02-16-2011, 04:28 PM #2
You need show your code that you done ). Because it is easy task. But There is not spoonfeeding )
Skype: petrarsentev
http://TrackStudio.com
Similar Threads
-
Removing duplicates from double Arrays
By jhong253 in forum New To JavaReplies: 3Last Post: 10-30-2010, 10:32 PM -
Removing Duplicates.
By dashwall in forum New To JavaReplies: 9Last Post: 12-29-2009, 01:03 PM -
removing duplicates from arrays
By bugger in forum New To JavaReplies: 3Last Post: 11-13-2007, 06:11 PM -
Duplicates
By Gambit17 in forum New To JavaReplies: 5Last Post: 11-08-2007, 09:56 AM -
duplicates in iReport
By Heather in forum Advanced JavaReplies: 1Last Post: 07-05-2007, 04:42 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks