Accessing return value without printing

Hey

I have a method that I would like to ask a question and receive an answer from the keyboard. Then, in my main method I would like to use 'if' methods depending on what the answer is from previously mentioned method. The problem is that when I try to access the return value in the main method, it goes through the whole method again, which includes re-printing the question.