[java] How to break out or exit a method in Java?