2007-05-26 for-each 構文あったらしい。 Java Java5 から。 int[] a = {1, 3, 2, 4, 8}; for(int i : a){ System.out.printf(i); } こういう書き方できるのか。