I have a couple of questions actually.
I have a class Dog with the following instance fields:
private int id; private int id_mother;
List list = ArrayList(); List userNames = list.stream().map(m -> m.getUserName()).collect(Collectors.toList());
output: ["John","Alex"]