I have a list of objects and I want to populate one attribute for each object in the list. I can do this using a loop for this.
for(Car car : cars) {
String abcd = getSomeValue();
car.setAbcd(abcd);
}
Can I do the same using Lambda in Java8.
source
share