int len = 10;
ArrayList cityList = null;
cityList = new ArrayList<String>(len);
Multiple markers at this line
- Syntax error, parameterized types are only available if source level
is 5.0
- The type ArrayList is not generic; it cannot be parameterized with
arguments <String>