How to update a list object where matching condition using java 8
list --> Obj to iterate
list.stream().filter(d -> {
if(d.getAvailableTodayInPerson() == true && d.getDistance() > dis) {
d.setAvailableTodayInPerson(false);
d.setAvailableTodayOutPerson(true);
}
});