List比较修改contextList = new ArrayList<>(); contextList.add("11"); contextList.add("22"); contextList.add("33"); List collect = contextList.stream().map(str -> "aa").toList(); collect.forEach(System.out::println);
ListcontextList = new ArrayList<>(); contextList.add("11"); contextList.add("22"); contextList.add("33"); List collect = contextList.stream().map(str -> StringUtils.isEmpty(str) ? "" : str + "2").toList(); collect.forEach(System.out::println);



