import java.util.List; import java.util.stream.Collectors; public class Agenda { private List persons; public void lambdaMap(String personName) { return persons.stream().collect(Collectors.toList()); } }