Map<String,Integer> hm = new HashMap<>();
hm contains name and Age of Employees. How to find the names of all employees whose age > 25 using java 8 streams concept
I attempted like this
hm.stream().filter(x->Map.Entry.getValue(x)>25).collect(collectors.toList());
Could anyone correct me?