import java list code example
Example 1: java list string package import
import java.util.List; // import just the List interface
import java.util.ArrayList; // import just the ArrayList class
Example 2: how to import an arraylist in java
import java.util.ArrayList;