How to declare a string list code example Example: list java initialize List<MyType> myList = new ArrayList<MyType>();