new arraylist with values java 8 code example Example: list java initialize List<MyType> myList = new ArrayList<MyType>();