特牛生活网

Scala List中数据全部放在一起且数据之间使用分隔符_list数组分组且添加分隔符-CSDN博客

网友收藏
文章浏览阅读317次。前言将Scala List 中的数据,集中放在一起输出且数据之间使用分隔符,采用addString()函数函数定义: def addString(b:mutable.StringBuilder, start:String, sep:String, end:String):mutable.StringBuilder. Where, sep is the separator stated.返回类型:It returns the elements of the List in the String Buil_list数组分组且添加分隔符