Suspended
- Joined
- 12 Aug 2006
- Posts
- 1,373
- Location
- CandyMountain
I am trying to make a quiz in java to help people to decide what classes will suit them in Uni.
On paper, it will look like a tree diagram, so that dependent on a person's yes/no answer to a question it will lead them down a different branch leading to an eventual conclusion.
My problem is this (I'm sure it's probably quite a beginner question, though it's currently troubling me a great deal!):
I'm having trouble calling the if/else methods purely on the basis of the yes/no answer. I can get it like a questionnaire so that it just runs through all the questions chronologically, collecting the answers, but cannot get it to call different methods depending on the answer given by the user.
Does that make sense?
Thanks for any help in advance!
On paper, it will look like a tree diagram, so that dependent on a person's yes/no answer to a question it will lead them down a different branch leading to an eventual conclusion.
My problem is this (I'm sure it's probably quite a beginner question, though it's currently troubling me a great deal!):
I'm having trouble calling the if/else methods purely on the basis of the yes/no answer. I can get it like a questionnaire so that it just runs through all the questions chronologically, collecting the answers, but cannot get it to call different methods depending on the answer given by the user.
Does that make sense?
Thanks for any help in advance!