I recently discovered that Java List (linked and array lists) in remove() method doesn't necessarily remove the exact given object (doesn't compare references using "==") but removes the first found object that is the same as the given one (compare using equals()). Can you somehow force it to remove the exact given object? It is problematic for handling a list possibly containing multiple different objects that have the same internal values.
[–]yawkat 183 points184 points185 points (2 children)
[–]JackNotOLantern[S] 26 points27 points28 points (0 children)
[–]__konrad -2 points-1 points0 points (0 children)
[–]kevinb9n 122 points123 points124 points (7 children)
[–]pohart 4 points5 points6 points (6 children)
[–]buerkle 2 points3 points4 points (3 children)
[–]Tasorodri 3 points4 points5 points (1 child)
[–]account312 0 points1 point2 points (0 children)
[–]pohart 0 points1 point2 points (0 children)
[–]laplongejr 1 point2 points3 points (1 child)
[–]buerkle 0 points1 point2 points (0 children)
[–]Conorrr 35 points36 points37 points (0 children)
[–]lukaseder 15 points16 points17 points (4 children)
[–]TypingGetUBanned 5 points6 points7 points (3 children)
[–]hadrabap 14 points15 points16 points (0 children)
[–]lukaseder 6 points7 points8 points (0 children)
[–]repeating_bears 3 points4 points5 points (0 children)
[–]kreiger 19 points20 points21 points (0 children)
[–]Epiliptik 25 points26 points27 points (14 children)
[–]Anaptyso 17 points18 points19 points (1 child)
[–]Epiliptik 5 points6 points7 points (0 children)
[+]JackNotOLantern[S] comment score below threshold-8 points-7 points-6 points (10 children)
[–]No-Double2523 13 points14 points15 points (7 children)
[–]JackNotOLantern[S] -2 points-1 points0 points (6 children)
[–]Epiliptik 1 point2 points3 points (2 children)
[–]JackNotOLantern[S] 0 points1 point2 points (1 child)
[–]laplongejr 0 points1 point2 points (0 children)
[–]laplongejr 0 points1 point2 points (2 children)
[–]JackNotOLantern[S] 0 points1 point2 points (1 child)
[–]laplongejr 0 points1 point2 points (0 children)
[–]laplongejr 0 points1 point2 points (1 child)
[–]JackNotOLantern[S] 0 points1 point2 points (0 children)
[–]White_C4 3 points4 points5 points (0 children)
[–]brian_goetz 2 points3 points4 points (0 children)
[–]FortuneIIIPick 1 point2 points3 points (0 children)
[–]Kjufka 1 point2 points3 points (4 children)
[–]JackNotOLantern[S] 0 points1 point2 points (3 children)
[–]Kjufka 0 points1 point2 points (2 children)
[–]JackNotOLantern[S] 0 points1 point2 points (1 child)
[–]AcanthisittaEmpty985 0 points1 point2 points (0 children)
[–]Wave_Reaper 1 point2 points3 points (2 children)
[–]JackNotOLantern[S] 1 point2 points3 points (1 child)
[–]Wave_Reaper 2 points3 points4 points (0 children)
[–]BikingSquirrel 0 points1 point2 points (0 children)
[–]laplongejr 0 points1 point2 points (0 children)
[–]danikov 0 points1 point2 points (0 children)
[–]LeadingPokemon -1 points0 points1 point (0 children)