If you know the number of questions you have you can make up an array to store the user-entered answers.
If not you can use an ArrayList to store the answers.
String answers = new String[numberOfQuestions];
for(questions asked)
answers[j] = nextLine
List<String> list = new ArrayList<String>();
for(questions asked)
list.add(nextLine)