would anyone be able to write this code in an easier way to understand
private List<Passenger> getPassengersToRelease() {
return passengerList.stream()
.filter(user -> user.getDestinationFloor() == currentFloor)
.collect(Collectors.toList());
}
I really cant get my head around it and have been struggling on it for a few days. Thanks