Set<Integer> ageSet = new HashSet<>();
Map<Integer, People> map = new HashMap<>();
for(int age : ageSet{
People people = new People(age);
map.put(age, people);
}
I'm trying to create an instance and put it in Hashmap with its integer. If I would like to code this using parallelStream()(stream()), how could I do this?