Then you need to debug it. Place a bunch of print statements all over the place to display the values of various variables and make sure the output is what you expect.
Type: Posts; User: Junky
Then you need to debug it. Place a bunch of print statements all over the place to display the values of various variables and make sure the output is what you expect.
private String[] studentAnswers;
All that does it declare a variable called studentAnswers. When do you actually create the array?