java forEach循环list、获取list中的指定数据
java forEach循环list、获取list中的指定数据
eg: List entityList = xxxx.getAllList();
1.forEach循环list
entityList .forEach(
listBean -> {
Integer id = listBean.getId();
Integer actId = listBean.getActId();
String name = listBean.getName(); //
原创
2021-06-02 14:45:15 ·
9674 阅读 ·
0 评论