Best way to convert Map values to List in Java, please suggest to me.
Manohar Changed status to publish July 21, 2019
Hi,
In Java JDK 1.8 :
List<String> listValues = map.values().stream().collect(Collectors.toList());
Manohar Changed status to publish June 26, 2019