int [] wronglist = new int [incorrect];
for (int i = 0; i < 6; i++){
for (int j = 0; j < i; j++){
if (studentArray[i] != ansArray[i])
wronglist[i] = (j+1);
ok i'm trying to write a program that figures out what number did the user got wrong on a test.
for example, the user inputs 6 letters for 6 questions on a multiple choice test.
the program have find out which number they got wrong if any.
studentArray is the student's answers array and ansArray is the correct answers.
i am very confused on the logic right now.
what i am trying to do is if one the answers does not match, then that index will be added to 1, and be added to a new array (wronglist). the code is wrong, but i can't figure out how to fix it.