<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yonchu</author_name>
  <author_url>https://blog.hatena.ne.jp/yonchu/</author_url>
  <blog_title>よんちゅBlog</blog_title>
  <blog_url>https://yonchu.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>久々にJavaを使うと忘れてたりするのでメモっとく。対象のJavaはJava6です。Javaはバージョンによってコーティングの常識が違うので注意が必要、 特にfor文は色々な書き方が出来るので非常に紛らわしい。 Listのfor文 // 例：ArrayList List&lt;SomeClass&gt; list = new ArrayList&lt;SomeClass&gt;(); // 拡張for文：推奨 for (SomeClass item : list) { // itemを処理 } // イテレータ：拡張for文が使えない場合に使用(要素の追加や削除が必要な場合など) for (Iterator&lt;Some…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyonchu.hatenablog.com%2Fentry%2F20110216%2F1297857882&quot; title=&quot;JavaのList・Mapのfor文処理覚書 - よんちゅBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-16 21:04:42</published>
  <title>JavaのList・Mapのfor文処理覚書</title>
  <type>rich</type>
  <url>https://yonchu.hatenablog.com/entry/20110216/1297857882</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
