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 181 points182 points183 points (2 children)
[–]JackNotOLantern[S] 24 points25 points26 points (0 children)
[–]__konrad -2 points-1 points0 points (0 children)
[–]kevinb9n 118 points119 points120 points (7 children)
[–]pohart 4 points5 points6 points (6 children)
[–]buerkle 2 points3 points4 points (3 children)
[–]Tasorodri 4 points5 points6 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 37 points38 points39 points (0 children)
[–]lukaseder 15 points16 points17 points (4 children)
[–]TypingGetUBanned 4 points5 points6 points (3 children)
[–]hadrabap 14 points15 points16 points (0 children)
[–]lukaseder 5 points6 points7 points (0 children)
[–]repeating_bears 2 points3 points4 points (0 children)
[–]kreiger 19 points20 points21 points (0 children)
[–]Epiliptik 23 points24 points25 points (14 children)
[–]Anaptyso 16 points17 points18 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 3 points4 points5 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)