java how to empty list code example Example: java create new empty list List myList = new ArrayList();