I am new to java and today I started to work on arrays and I'm lost. I am trying to put some values in an array but I'm getting the error java.lang.ArrayIndexOutOfBoundsException.
Here is what I have done so far.
      int n=6; 
      int[]A= new int [1];
      for(i=0;i<n;i++){
          A[i]=keyboard.nextInt();
      } 
 
     
     
     
     
     
     
    