私は今日このプログラムについて質問し、私がする必要のあることのほとんどを得ることができましたが、人々はもうそれを見ていないようです ここにそれへのリンクがあります。
これが私が今持っているものです:
import java.util.*;
import java.text.*;
public class Lab4 {
public static void main(String[] args){
    Scanner s= new Scanner(System.in);
    String input;
    int students;
    int correctAnswers=0;
    char [] answerKey= { 'B' , 'D' , 'A' , 'A' , 'C' , 'A' , 'B' , 'A' , 'C' , 'D' , 'B' , 'A' };
    char [] userAnswers = new char[answerKey.length];
    DecimalFormat df = new DecimalFormat("#0.0");
    System.out.print("how many students are in your class?");
    input = s.nextLine();
    students=Integer.parseInt(input);
    String [] name = new String[students];
    int j=1;
    while(students>=j)
    {
        System.out.print("Enter name of student" + j + ": ");
        name[j] = s.nextLine();
        System.out.print("Enter quiz score answers");
        userAnswers[answerKey.length] = s.next().charAt(0);
        for (int i = 0; i < userAnswers.length; ++i)
        {
            if(userAnswers[i]==answerKey[i]);
            correctAnswers++;
        }
        System.out.print((df.format(correctAnswers/answerKey.length)) + "%");
    j++;
    }
}
    }
しかし、ユーザーの回答を入力した後も、このエラーが発生し続けます。
スレッド「main」の例外java.lang.ArrayIndexOutOfBoundsException:12 at Lab4.main(Lab4.java:29)
それが何を意味するのか、それを修正する方法がわかりません。