String数组与list之间的相互转化

将数组转化成List
            String[] array = ids.split(",");
            List<String> list = Arrays.asList(array);


将list转化成数组
          
 List<String> list = Arrays.asList(array);
            String[] array = list.toArray();

你可能感兴趣的:(String)