import java.io.*;

public class ArrayReversal {
  
  public static void printArray(int [] a ){
    for (int i=0; i<a.length ; i++){
      System.out.println(a[i]);
    }
  }
  
  public static int[] makeArray() throws IOException{
    BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
    int [] a = new int [10];
    System.out.println("Enter 10 numbers");
    for (int i = 0; i<10; i++) {
      a[i] = Integer.parseInt(br.readLine());
    }
    return a;
    
  }
  
  /* Sets a to the reverse of a
   * note: don't make another array
   */
  public static void reverse(int[] a) {
    
    int k= 0;
    int n = a.length - 1;      
    while (k<n){  // why is k!=n incorrect?
      int temp= a[k];
      a[k]= a[n];
      a[n]= temp;
      k++;
      n--;
    }
  }  
}

