return;

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

void test() {

  return;

}

 

posted @ 2020-05-16 16:42  Tudoo  阅读(114)  评论(0编辑  收藏  举报