增强for 和普通for区别

增强for(X x:L){}

没有下标 需要加入i  里面进行自增作为下标使用

可以使用X的get方法 

posted @ 2017-08-17 16:36  蕉叶  阅读(383)  评论(0编辑  收藏  举报