What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-31 07:21:48
remove all entries of arraylist
//Creating the ArrayList ArrayList <String> names = new ArrayList<>(); //Removing all entries in the ArrayList using the clear() method names.clear() //Removing all entries in the ArrayList using the removeAll() method names.removeAll(names) Add solution
Best helpers
Ranking is empty