- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use remove(obj), remove(index), and removeAll() methods in Java list collections?
remove(int index) − Removes the element at position index from the invoking list and returns the deleted element. The resulting list is compacted. That is, the indexes of subsequent elements are decremented by one.
removeRange(int fromIndex, int toIndex) − Removes all of the elements whose index is between fromIndex, inclusive and toIndex, exclusive.
removeAll(Collection<?> c) − Removes from this list all of its elements that are contained in the specified collection (optional operation).
- Related Articles
- How to use Remove, RemoveAt, RemoveRange methods in C# list collections?
- How to remove index list from another list in python?
- What does the method remove(obj o) do in java?
- How to remove an element from a list by index in Python?
- How to remove element from the specified index of the List in C#?
- How to use removeAll() in android CopyOnWriteArraySet?
- Python prorgam to remove duplicate elements index from other list
- How to remove an element from a Java List?
- How to remove Index in base R plot?
- How to remove an item from a C# list by using an index?
- How to use remove() in android ConcurrentLinkedQueue?
- How to use remove() in android CopyOnWriteArrayList?
- How to use remove() in android CopyOnWriteArraySet?
- How to use remove() in android PriorityBlockingQueue?
- How do I remove multiple elements from a list in Java?

Advertisements