java Stream流的筛选、排序
package lambda_stream;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class Student {
public int id;
public String name;
public double score;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public Student() {
// 重载了构造方法,默认的构造方法就失效了,如果要用默认的构造方法,就要再次进行说明
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public double getScore() {
return score;
}