Discuss / Java / 终于证明了

终于证明了

Topic source

🌙

#1 Created at ... [Delete] [Delete and Lock User]

终于整明白了 为什么 这 一行 .map(String::split)   编译不通过了

Arrays.asList(" Apple ", " pear ", " ORANGE", " BaNaNa ").stream()
//R apply(T t);
.map(x -> {
return x.split(x);
})
.map(String::split)
.map(String::trim) // 去空格
.map(String::toLowerCase) // 变小写
.forEach(System.out::println); // 打印

不器

#2 Created at ... [Delete] [Delete and Lock User]

不知道你在写什么


  • 1

Reply