Commons.lang3工具类

数组转字符串

    @Test
    public void testString() {
        List<String> list = new ArrayList<>(Arrays.asList("1","2","3"));
        System.out.println(StringUtils.join(list, ","));
    }

 

posted on 2023-07-24 22:18  or追梦者  阅读(7)  评论(0编辑  收藏  举报