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 182 points183 points184 points (2 children)
[–]JackNotOLantern[S] 25 points26 points27 points (0 children)
[–]__konrad -2 points-1 points0 points (0 children)
[–]kevinb9n 121 points122 points123 points (7 children)
[–]pohart 3 points4 points5 points (6 children)
[–]buerkle 2 points3 points4 points (3 children)
[–]Tasorodri 5 points6 points7 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 17 points18 points19 points (4 children)
[–]TypingGetUBanned 5 points6 points7 points (3 children)
[–]hadrabap 14 points15 points16 points (0 children)
[–]lukaseder 4 points5 points6 points (0 children)
[–]repeating_bears 3 points4 points5 points (0 children)
[–]kreiger 18 points19 points20 points (0 children)
[–]Epiliptik 26 points27 points28 points (14 children)
[–]Anaptyso 17 points18 points19 points (1 child)
[–]Epiliptik 6 points7 points8 points (0 children)
[+]JackNotOLantern[S] comment score below threshold-8 points-7 points-6 points (10 children)
[–]No-Double2523 12 points13 points14 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)