return;

用在Java void方法中,作用是终止方法运行(不过据说这样不太规范)

void test() {

  return;

}

原文地址:https://www.cnblogs.com/tudoo/p/12901126.html