1.数组元素反转,其实就是对称位置的元数交换
(1)通常遍历数组用的是一个索引:int i=0;
现在表示对称位置需要两个索引;
int min=0;
int nax=array.length-1;
数组作为方法参数