2024年5月10日发(作者:)
public class demo {
public static void main(String[] args) {
List
new Person("张三", 1L),
new Person("李四", 2L)
);
// 将Peson集合转化为String集合
List
n("strs = " + strs);
// 将Person集合转化为Student集合
List
Student student = new Student();
operties(person, student);
if (e() == "张三") {
oolName("三中");
(3L);
}
if (e() == "李四") {
oolName("四中");
(4L);
}
return student;
}).collect(());
n("students = " + students);
}
}


发布评论