public static void main(String[] args) {
List strL = new ArrayList();
strL.add(“1”);
strL.add(“2”);
strL.add(“3”);
String sendAddress = strL.stream().collect(Collectors.joining(";"));
System.out.println(sendAddress);
}
List转字符串用;分割
最新推荐文章于 2024-04-28 11:46:49 发布