Do you happen to be calling getAnswer(), without a parameter? Because, that would be your problem.
Your method needs to be passed an int in order for it to work. However, in this case, you shouldn't be using a parameter at all, since all you are doing is assigning something to it. Declare the int inside your method.