终于整明白了 为什么 这 一行 .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); // 打印
不知道你在写什么
Sign in to make a reply
🌙
终于整明白了 为什么 这 一行 .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); // 打印