当输入流没有指定泛型的时候,总会以很奇妙的返回Object
List list = new ArrayList<>();
Object collect = list.stream().map(item -> new HashMap<>()).collect(Collectors.toList());
当输入流没有指定泛型的时候,总会以很奇妙的返回Object
List list = new ArrayList<>();
Object collect = list.stream().map(item -> new HashMap<>()).collect(Collectors.toList());