concept clear in category java

appears as: clear
Java SE 11 Programmer I Certification Guide

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: