title: How to call a return statement from another method in Java?
body: <p>I have an event handler for the user hitting the enter key, and I need that to return a value from another method. Essentially, if you have <code>return "hi";</code> in method b, and the Event Handler in method A, I need a line of code to return "hi". (note, in the code, "hi" would vary). Is there a way to do that?</p>