list与int[]互相转化

 public static void main(String[] args) {
        ArrayList<Integer> lst= new ArrayList<>();
        int[] a = {5};
        List<Integer> obj = Arrays.stream(a).boxed().collect(Collectors.toList());
        System.out.println(obj.get(0));
    }

相关文章:

  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案