📜  java 从 void 方法退出 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:48.564000             🧑  作者: Mango

代码示例1
public void someMethod() {
    //... a bunch of code ...
    if (someCondition()) {
        return;
    }
    //... otherwise do the following...
}