标签:java常用
1、commons.lang3.StringUtils
public class T_StringUtils { public static void main(String []args ){ t_join(); } /**将数组以符号或其他字符串为间隔组成新的字符串*/ public static void t_join(){ String[] str = {"1","2","3","4"}; String result = StringUtils.join(str, "|"); System.out.println(result);//1|2|3|4 } }
标签:java常用
原文地址:http://houjt.blog.51cto.com/4471802/1611251