时间:2024-11-03 19:44:11
1、首先引入hutool的jar包
3、int[] swap = ArrayUtil.swap(s, 0, 5);//将数组对象放入和需要交换的位置
5、运行程序查看得到的结果