java list with value initialized code example Example: list java initialize List<MyType> myList = new ArrayList<MyType>();