Here is what might seem to be an odd request. Does anyone know how I can find a duplicate in an arraylist and delete both the duplicate and the original, leaving me with only the items that didn't have any duplicates? This might be bass-ackwards, but I'm trying to get something to work really quick that I don't have time right now to research. I am able to sort but I keep getting index errors, which I assume are happening when I get to the end of the arraylist.
If I remove a record at "i", does it shift all the records up so technically I would have to remove at "i" again to delete both. I've tried this and it still throws back an exception, but I'm trying to get some more insight as far as how an arraylist works.
Thanks!
If I remove a record at "i", does it shift all the records up so technically I would have to remove at "i" again to delete both. I've tried this and it still throws back an exception, but I'm trying to get some more insight as far as how an arraylist works.
Thanks!
Comment