需求
从List对象列表提取2个字段,分别作为Map的key-value
实现
public static void main( String[] args ){ArrayList<Person> list = new ArrayList<>()
如果觉得《java使用stream将List转为Map》对你有帮助,请点赞、收藏,并留下你的观点哦!
时间:2022-02-28 13:54:55
从List对象列表提取2个字段,分别作为Map的key-value
public static void main( String[] args ){ArrayList<Person> list = new ArrayList<>()
如果觉得《java使用stream将List转为Map》对你有帮助,请点赞、收藏,并留下你的观点哦!
失眠复发了3次 我不会再惧怕第4次 因为我找到了破解失眠的根
2024-07-29