📜  列表成字符串java代码示例

📅  最后修改于: 2022-03-11 14:52:19.999000             🧑  作者: Mango

代码示例1
ArrayList list = new ArrayList();
list.add("one");
list.add("two");
list.add("three");

StringBuilder sb = new StringBuilder();
for (String s : list)
{
    sb.append(s);
    sb.append("\t");
}

System.out.println(sb.toString());