Java拡張for文 2009年6月9日 java 拡張for そんなのもあったなーとか思ってて、要はfor eachじゃね?とかおもったり思わなかったり。 あまり詳しくわかっていなかったので、サンプルソースコード書いておきます。 1 2 3 4 5 6 7 8 9 class Hello { public static void main(String args[]) { int [] a = {1,2,3}; for(int b : a){ System.out.println(b); } } } カテゴリ tech この記事をXで共有 前の記事 結婚式 次の記事 フジファブリックCHRONICLE TOUR@Zepp Tokyo Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus