时间:2024-11-03 19:44:08
1、首先引入hutool的jar包
3、long[] swap = ArrayUtil.swap(s, 2, 4);//将数组和位置作为参数
5、运行程序查看得到的结果