Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 285 Bytes
int[] data; // int型配列のdataを宣言
data = new int[5]; // 要素数5のint型配列の実態をdataに代入
// dataのそれぞれの要素に数値を代入
data[0] = 53;
data[1] = 22;
data[2] = 84;
data[3] = 17;
data[4] = 49;
// dataの中身を出力
println(data);