int a = new int [] {1,2,3} for (int x :a) { System.out.println(x); }
遍历Java数组的另一种写法
原文:https://www.cnblogs.com/luguankun/p/14194291.html