Results 1 to 2 of 2
  1. #1
    javaman1 is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default 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.



  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Rep Power


    You need show your code that you done ). Because it is easy task. But There is not spoonfeeding )
    Skype: petrarsentev

Similar Threads

  1. Removing duplicates from double Arrays
    By jhong253 in forum New To Java
    Replies: 3
    Last Post: 10-30-2010, 10:32 PM
  2. Removing Duplicates.
    By dashwall in forum New To Java
    Replies: 9
    Last Post: 12-29-2009, 02:03 PM
  3. removing duplicates from arrays
    By bugger in forum New To Java
    Replies: 3
    Last Post: 11-13-2007, 07:11 PM
  4. Duplicates
    By Gambit17 in forum New To Java
    Replies: 5
    Last Post: 11-08-2007, 10:56 AM
  5. duplicates in iReport
    By Heather in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2007, 04:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts