int [] src=new int[]{1,2,3,4,5,6,7,8,9,10};

int [] data= Arrays.copyOfRange(src, 2, 4);
System.out.println(Arrays.toString(data));

数组的骚操作

相关文章:

  • 2021-08-28
  • 2022-01-22
  • 2021-08-07
  • 2022-02-14
  • 2021-06-03
  • 2021-10-16
  • 2021-12-18
猜你喜欢
  • 2021-05-22
  • 2022-02-24
  • 2022-12-23
  • 2021-04-25
  • 2021-09-16
  • 2021-10-26
相关资源
相似解决方案