时间:2024-11-11 02:59:08
1、首先需要引入hutool的jar包
3、short[] swap = ArrayUtil.swap(s, 0, 5);//将数组的第一个和最后一个做交换
5、运行程序查看得到的结果