Image

i have a program i have to write involving arrays. i'm inexperienced with them, so bear with me if this question is a bit simple.

the program is a quiz that prompts the user for a certain number of questions, then the answer key. if i am supposed to enter the key as char values (i.e. abbcdbabdabd), how would i set it as the array length as the user's input and the actual value of each cell as the answers?

System.out.print("How many questions should the quiz be? ");
input = thing.nextInt();
int[] quiz = new int[input];
char[] quiz = new char[input];

would i just need the second array declaration to make the program work?