/* for 文を使って配列の要素の和を計算する */ class Foo { public static void main (String[] args) { int[] a = new int[5]; for (int i=0; i