I have 10 questions in ArrayList. I want to display one question at a time to user, based on his answer I want to show him next question. Please help in finalizing the logic. If any body can help
Printable View
I have 10 questions in ArrayList. I want to display one question at a time to user, based on his answer I want to show him next question. Please help in finalizing the logic. If any body can help
What's your architecture?
Servlet with JSP?
Do you have any ideas yet?
Yes I am using JSP And Servlets. I have all the questions in Array list. NOw I want to display it to user one by one and once the user selects some option , I need to do some processing on the selected anwer and then display second question to user.
So.
What do you think needs to be done?
You have your list...you want to go through it one at a time.
That implies storing the index of the current question.