I have looked in the Javadoc but couldn\'t find information related to this.
I want the application to stop executing a method if code in that method tells it to do
You can just use return to end the method's execution
return