concept clear in category java
appears as: clear

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.
You can remove all the ArrayList elements by calling clear on it. Here’s an example:

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.
You can remove all the ArrayList elements by calling clear on it. Here’s an example: