标签:blog ar os java sp for log bs as
public static String join( Object[] o , String flag ){ StringBuffer str_buff = new StringBuffer(); for(int i=0 , len=o.length ; i<len ; i++){ str_buff.append( String.valueOf( o[i] ) ); if(i<len-1)str_buff.append( flag ); } return str_buff.toString(); }
原本是在cnblog上看到的,地址忘了,见谅
标签:blog ar os java sp for log bs as
原文地址:http://my.oschina.net/cshuangxi/blog/343379