1.反转
public static void reverse(int[] arr){
for(int start=0, end=arr.length-1;start<=end;start++,end--){
int temp=arr[start];
arr[start]=arr[end];
arr[end]=temp;
}
}
2.数组(输出左右方括号并且为一行的数组)
public static void printArray(int[] arr){
System.out.print("[");
for(int x=0;x


