增强型For循环的使用

增强型for循环   :

for(类型 变量:数组){System.out.println(变量);}

遍历数组中的所有值

posted @ 2022-10-25 10:34  slowlydance2me  阅读(27)  评论(0编辑  收藏  举报