@@ -0,0 +1,998 @@
+package java8.stream;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Comparator;%0Aimport java.util.List;%0A%0A/**%0A * @Author: yoyo%0A * @Description:%0A * @Date: Created in 2019/8/28 16:12%0A */%0Apublic class ListBeanSort %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        List%3CStudent%3E students = List.of(new Student(12,%22Ricky%22),new Student(24,%22Dan%22),new Student(30,%22Cusy%22));%0A%0A        students.parallelStream().sorted(Comparator.comparing(Student::getAge));%0A%0A        System.out.println(students);%0A    %7D%0A%0A%0A   static class Student %7B%0A        private int age;%0A        private String name;%0A%0A        public Student(int age, String name) %7B%0A            this.age = age;%0A            this.name = name;%0A        %7D%0A%0A        public int getAge() %7B%0A            return age;%0A        %7D%0A%0A        public void setAge(int age) %7B%0A            this.age = age;%0A        %7D%0A%0A        public String getName() %7B%0A            return name;%0A        %7D%0A%0A        public void setName(String name) %7B%0A            this.name = name;%0A        %7D%0A    %7D%0A%7D%0A

add stream sorted