日期:2014-05-20 浏览次数:20612 次
String[] arr = { "a", "b", "c" }; StringBuffer sb = new StringBuffer(); for (int i = 0; i < arr.length; i++) { sb.append(arr[i]); if (i < arr.length - 1) { sb.append(","); } } System.out.println(sb.toString());