java initialize array of list with empty list code example Example: list java initialize List<MyType> myList = new ArrayList<MyType>();