ListIn this example, we create a list of names using the 'ArrayList' implementation of the 'List' interface. We then add three names to the list and iterate over all the names using a for-each loop to print them to the console. The 'java.util' package is a part of the core Java library, which is included in default Java installations.names = new ArrayList<>(); names.add("John"); names.add("Mary"); names.add("Bob"); for(String name: names){ System.out.println(name); }