how to empty an arraylist in java code example Example: java create empty arraylist ArrayList<Class> myList = new ArrayList<Class>();