Using Lambda with Map and List
Map Example import java.util.HashMap; import java.util.Map; public class LambdaWithMap { public static void main(String[] args) { Map<String, Integer> map = new HashMap(); map.put("beijing", 2000); map.put("shanghai", 2200); map.put("guangzhou", 1500); map.forEach((key, value)…