how to initialize a new generic list in java code example Example: list java initialize List<MyType> myList = new ArrayList<MyType>();