I don't think you can use addAll in that way, since addAll expects a Collection
as the parameter; in your case it should be a Collection<? extends List<String>>
So, you need to create a Collection with the array looking data that you have and then add it to your places
Collection.
The closest that i can think of is to do something as below,
List<List<String>> places = new ArrayList<List<String>>();
String[] string1 = new String[]{"a", "b", "c"};
String[] string2 = new String[]{"aa", "bb", "cc"};
places.add(Arrays.asList(string1));
places.add(Arrays.asList(string2));
If you really want to use addAll
then you'll have to do something like this,
List<List<String>> tempPlaces = new ArrayList<List<String>>();
String[] string1 = new String[]{"a", "b", "c"};
String[] string2 = new String[]{"aa", "bb", "cc"};
tempPlaces.add(Arrays.asList(string1));
tempPlaces.add(Arrays.asList(string2));
List<List<String>> places = new ArrayList<List<String>>();
places.addAll(tempPlaces);