{"blog_url":"https://irof.hateblo.jp/","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Firof.hateblo.jp%2Fentry%2F20100616%2Fp1\" title=\"List\u306e\u30eb\u30fc\u30d7 - \u65e5\u3005\u5e38\u3005\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/irof/","image_url":null,"provider_url":"https://hatena.blog","type":"rich","categories":["Java"],"provider_name":"Hatena Blog","width":"100%","url":"https://irof.hateblo.jp/entry/20100616/p1","blog_title":"\u65e5\u3005\u5e38\u3005","title":"List\u306e\u30eb\u30fc\u30d7","height":"190","published":"2010-06-16 00:00:00","author_name":"irof","description":"List\u3092\u5168\u4ef6\u30eb\u30fc\u30d7\u3057\u3066\u51e6\u7406\u3059\u308b\u5834\u5408\u3001\u3071\u3063\u3068\u601d\u3044\u3064\u304f\u3068\u3053\u308d\u30673\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002 \u30eb\u30fc\u30d7\u30ab\u30a6\u30f3\u30bf\u306b\u3088\u308b\u30eb\u30fc\u30d7 Iterator\u306b\u3088\u308b\u30eb\u30fc\u30d7 \u62e1\u5f35for\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\uff08J2SE 5.0\u4ee5\u964d\uff09 \u5b9f\u88c5\u4f8b // \u306a\u3093\u3089\u304b\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3002 List<?> list = getList(); // \u30eb\u30fc\u30d7\u30ab\u30a6\u30f3\u30bf for (int i = 0, n = list.size(); i < n; i++) { Object o = list.get(i); // \u51e6\u7406 } // Iterator for (Iterator i = list.iterator(); i.hasNext();) { Object\u2026"}