java数组转List集合对象

方法一:

List<String> list = new ArrayList<>();
      Collections.addAll(list,ids);

方法二:

Arrays.asList(userIds)

猜你喜欢

转载自blog.csdn.net/qq_25983579/article/details/110531386