容器_增强的for循环

for(int i : arr)

增强的for循环(只能看不能改)

在使用增强for循环时,也内部也使用了iterator  因为已经锁定 所以无法建remove操作



猜你喜欢

转载自blog.csdn.net/e2603199/article/details/80304833
今日推荐