Answer the question
In order to leave comments, you need to log in
How to reduce java 8 stream of objects to one element?
There is a stream of objects. For example:
public class Student implements Serializable {
private long id;
private String name;
private String surname;
private long group;
// наши геттеры\сеттеры
}
public class Student implements Serializable {
private long id;
private List<Student> students;
private Student bestStudent;
private long studentsCount;
// наши геттеры\сеттеры
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question