Any harm in returning the guess in a whole new method?

My solution was to declare the string guess on line 10 and call it in both GetGuess and RepeatGuess. Is there a better solution or is this perfectly acceptable?

Privacy & Terms