return 跳转控制语句

return使用在方法中,表示跳出所在的方法

注意:如果return写在main方法,退出程序。

posted on 2022-01-08 16:45  轻信  阅读(55)  评论(0)    收藏  举报

导航