Next:
Using clear() Method
Up:
Remove ArrayList Elements
Previous:
Using remove() Method
Contents
Using
removeAll()
method
To remove all elements from an array list, we use the
removeAll()
method. For example,
Output