Map<String, List<String>> mapValues; //some values
List<String> listValues;
listValues.addAll(mapValues.values()); // trying to add map values to list
I am currently achieving using for loop using map.values(), But I wanted to directly add it to a single list.