List<Student> students = new ArrayList<>();
List<Teacher> teacher = students.stream().map(info -> {
Teacher teach = new Teacher();
BeanUtils.copyProperties(info, teach);j
return teach;
}).collect(Collectors.toList());
List<Student> students = new ArrayList<>();
List<Teacher> teacher = students.stream().map(info -> {
Teacher teach = new Teacher();
BeanUtils.copyProperties(info, teach);j
return teach;
}).collect(Collectors.toList());