配列のインデックスでの++ 2008年5月28日 java インデックス 配列 配列のなかでi++的なことができることを発見。 なんか最近いろいろな書き方があるなと思いますた。 ソース全部書くと課題の答えを教えてしまうので、一部だけ記載します。 大ヒントだよwwww 1 2 3 4 5 for (int idx1 = 0; idx1 < arrayTen.length; idx1++) { if (arrayTen[idx1] != -1) { arrayIdx[idx2++] = idx1; } } カテゴリ tech この記事をXで共有 前の記事 Ethnaアクション名の決定方法を変更 次の記事 文字列の比較 Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus