Tag

remove

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 20, 2023 · Fundamentals

Understanding Java List.remove Overloads and the Pitfalls of Arrays.asList

This article explains the overloaded remove methods in Java's List interface, demonstrates common mistakes when removing elements from ArrayList, clarifies the behavior of Arrays.asList with primitive arrays versus object arrays, and highlights related issues such as unsupported add/remove operations and index‑based deletions.

ArrayListArrays.asListCollections
0 likes · 10 min read
Understanding Java List.remove Overloads and the Pitfalls of Arrays.asList
Python Programming Learning Circle
Python Programming Learning Circle
Dec 17, 2021 · Fundamentals

How to Delete Elements from a Python List Using remove, pop, and del

This article explains three common Python techniques—remove, pop, and del—for deleting list elements, illustrating each method with clear code examples, usage notes, and important differences such as value‑based versus index‑based removal and reference handling.

Tutorialdellist
0 likes · 3 min read
How to Delete Elements from a Python List Using remove, pop, and del
Selected Java Interview Questions
Selected Java Interview Questions
Apr 27, 2020 · Fundamentals

How to Remove Elements from a List Without Causing java.util.ConcurrentModificationException

This article explains why removing items from a Java List inside a foreach loop triggers a ConcurrentModificationException and demonstrates three correct approaches—using Iterator.remove(), a forward indexed for loop with index correction, and a reverse for loop—each with full code examples and output.

ArrayListConcurrentModificationExceptionIterator
0 likes · 6 min read
How to Remove Elements from a List Without Causing java.util.ConcurrentModificationException