return不能终止foreach和map,只是起到循环中continue的作用,想终止需要抛异常
点赞 1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务