数组转list List<String> userIdLists = Arrays.asList(userId); list转数组 String[] userIdCollect = userIdlist.toArray(new String[userIdlist.size()]);