Код: Выделить всё
Comparator comparator =Comparator.comparing(Employee::getIncome);
Employee minObj= Employee.persons().stream()
.min(comparator)
.get();
Код: Выделить всё
toMap.Employee@66133adc
Подробнее здесь: https://stackoverflow.com/questions/736 ... -of-object
Мобильная версия