#StringJoiner

StringJoiner,StringBuffer的一些lamada写法

publicStringfriendlyText(Listdata){if(CollectionUtils.isEmpty(data)){return"[]";}StringJoinerjoiner=newStringJoiner(",","[","]");Stringbody=(String)data.stream(...