2005-08-30から1日間の記事一覧

更にサンプル

public class sample1 { public static void main(String[] args) throws Exception { int[] i = new int[10]; //for文を使ってデータを挿入 for (int j = 0; j < 10; j++) { i[j] = j * 2; } int total = 0; //for文を使って配列に入っている値の和を求めま…