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