package com.example.demo;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class TestSteam {
private static class Item {
private String key;
private String value;
public Item(String key, String value) {
this.key = key;
this.value = value;
}
public String getKey() {
return key;
}
public void setKey
Java8 steam.collect(Collectors.toMap())方法引发的NullPointerException 空指针异常
最新推荐文章于 2024-02-27 09:24:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)