reduce for java 1.8 unable to use stringbuilder

前端 未结 0 1441
臣服心动
臣服心动 2021-01-30 02:11
String s = "apples for you";
StringBuilder returnString = new StringBuilder("");
Arrays.stream(s.split(" ")).reduce(returnString, (acc, str         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题