JAVA開発メモ
のバックアップ(No.1)
 

[トップ|一覧|単語検索|最終更新|バックアップ|ヘルプ]


int[] array = {1, 2, 3, 4, 5}; for (int element : array) { System.out.println(element); } int[][] arrays = {{1, 2, 3}, {10, 20, 30}, {100, 200, 300}}; for (int[] array : arrays) { for (int element : array) { System.out.println(element); } } List<String> list = new ArrayList<String>(); list.add("abc"); list.add("def"); list.add("ghi"); for (String s : list) { System.out.println(s); }
トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS

Modified by MT22(Moriwaki Takashi)

"PukiWiki" 1.3.7 Copyright © 2001,2002,2003 PukiWiki Developers Team. License is GNU/GPL.
Based on "PukiWiki" 1.3 by sng
Powered by PHP 7.4.28

HTML convert time to 0.003 sec.