initialize a list of type string java code example
Example 1: list java initialize
List myList = new ArrayList();
Example 2: initialise List>
List> list = new ArrayList>();
##or since Java 1.7
List> list = new ArrayList<>();
List myList = new ArrayList();
List> list = new ArrayList>();
##or since Java 1.7
List> list = new ArrayList<>();