java中return和break以及continue的区别?

return是结束方法;
break是跳出循环;
continue是终止本次循环继续下次循环。

猜你喜欢

转载自blog.csdn.net/lihuan666/article/details/88816934
今日推荐