{"id":463,"date":"2015-12-02T00:32:02","date_gmt":"2015-12-01T15:32:02","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2015\/12\/02\/java8excel1\/"},"modified":"2015-12-02T00:32:02","modified_gmt":"2015-12-01T15:32:02","slug":"java8excel1","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2015\/12\/02\/java8excel1\/","title":{"rendered":"Java8\u306b\u3088\u308b\u95a2\u6570\u578b\u30d3\u30b8\u30cd\u30b9\u7d71\u8a08\u5206\u6790Excel\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0(1)"},"content":{"rendered":"<p>\u305d\u308d\u305d\u308d\u3001<a href=\"https:\/\/www.typea.info\/blog\/index.php\/2014\/08\/14\/java_8_java_7\">Java8\u3092\u8a66\u3057\u3066\u307f\u3088\u3046\u3068Java7\u306e\u304a\u3055\u3089\u3044\u3092\u3057\u3066\u304b\u3089\u3001\u6c17\u3065\u3051\u30701\u5e74\u4ee5\u4e0a\u305f\u3063\u3066\u307e\u3059<\/a>\u3002<\/p>\n<p>\u3057\u304b\u30571\u5e74\u304c\u305f\u3064\u306e\u306f\u65e9\u3044\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u672c\u3092\u8aad\u4e86\u3057\u305f\u306e\u3067\u3001\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u3066\u3001\u30e9\u30e0\u30c0\u5f0f\u3084\u3089\u306a\u3093\u3084\u3089\u3092\u8eab\u306b\u7740\u3051\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3063\u3066\u307e\u3059\u3002\u4eca\u56de\u306f\u3001Java5\u3067\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u30b9\u3068\u304b\u304c\u5c0e\u5165\u3055\u308c\u305f\u3068\u304d\u540c\u69d8\u3001\u3042\u308b\u7a0b\u5ea6\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u306a\u3044\u3068\u7406\u89e3\u3067\u304d\u306a\u3055\u305d\u3046\u3067\u3059\u3002\u305d\u3046\u3044\u3048\u3070\u3001Java5\u306e\u3068\u304d\u306f\u3001SJCP\u3092\u66f4\u65b0\u53d7\u9a13\u3057\u305f\u306a\u3002\u4eca\u56de\u306f\u8a66\u9a13\u53d7\u3051\u3066\u3082\u3088\u3044\u304f\u3089\u3044\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u304b\u3082\u3002<\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4873117046\/ref=as_li_ss_il?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4873117046&amp;linkCode=as2&amp;tag=typea09-22\" rel=\"nofollow\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4873117046&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4873117046\" width=\"1\" height=\"1\"> <\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4873117046\/ref=as_li_ss_tl?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4873117046&amp;linkCode=as2&amp;tag=typea09-22\" rel=\"nofollow\">Java\u306b\u3088\u308b\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u2015Java 8\u30e9\u30e0\u30c0\u5f0f\u3068Stream<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4873117046\" width=\"1\" height=\"1\"><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3084\u307f\u304f\u3082\u306b\u30bf\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u306e\u3082\u9762\u767d\u307f\u304c\u306a\u3044\u306e\u3067\u3001\u30c7\u30fc\u30bf\u3092\u5206\u6790\u3057\u306a\u304c\u3089\u3001Java8\u3092\u5b66\u3093\u3067\u3044\u304d\u305f\u3044\u306a\u3068\u3002<\/p>\n<p>\u624b\u5143\u306b\u3042\u3063\u305f\u3001\u4ee5\u4e0b\u306e\u672c\u3068\u306e\u304b\u3089\u3081\u624b\u3067\u884c\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4798133833\/ref=as_li_ss_il?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4798133833&amp;linkCode=as2&amp;tag=typea09-22\" rel=\"nofollow\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4798133833&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4798133833\" width=\"1\" height=\"1\"> <\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4798133833\/ref=as_li_ss_tl?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4798133833&amp;linkCode=as2&amp;tag=typea09-22\" rel=\"nofollow\">EXCEL\u30d3\u30b8\u30cd\u30b9\u7d71\u8a08\u5206\u6790 \uff3b\u30d3\u30b8\u30c6\u30af\uff3d \u7b2c2\u7248 2013\/2010\/2007\/2003\u5bfe\u5fdc<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4798133833\" width=\"1\" height=\"1\"><\/p>\n<h2>1.JRA \u306e\u5358\u52dd\u6255\u623b\u91d1\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b<\/h2>\n<h3>1.1 JRA-VAN \u30c7\u30fc\u30bf\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/h3>\n<p>\u3053\u308c\u307e\u305f\u3001\u9069\u5f53\u306a\u91cf\u304c\u3042\u308b\u30c7\u30fc\u30bf\u304c\u306a\u3044\u306e\u3067\u3001\u4f55\u5e74\u304b\u524d\u306b\u5165\u624b\u3057\u305f\u3001<a href=\"http:\/\/jra-van.jp\/\">JRA-VAN<\/a> \u306e\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3001\u611f\u3058\u3067\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u5b9a\u7fa9\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6255\u623b\u91d1\u60c5\u5831\u306f\u3001HR\u304b\u3089\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3001105byte\u76ee\u304b\u30899byte\u5206\u304c\u3001\u5358\u52dd\u306e\u91d1\u984d\u30c7\u30fc\u30bf\u3068\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/jra-van_data_type_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"jra-van_data_type\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"jra-van_data_type\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/jra-van_data_type_thumb.jpg\" width=\"358\" height=\"200\"><\/a><\/p>\n<p>\u30c7\u30fc\u30bf\u30ec\u30a4\u30a2\u30a6\u30c8<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/jra-van_data_harai_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"jra-van_data_harai\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"jra-van_data_harai\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/jra-van_data_harai_thumb.jpg\" width=\"356\" height=\"258\"><\/a><\/p>\n<p>\u5b9f\u969b\u306e\u30c7\u30fc\u30bf<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/jra-van_data_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"jra-van_data\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"jra-van_data\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/jra-van_data_thumb.jpg\" width=\"375\" height=\"134\"><\/a><\/p>\n<h3>1.2 Java8 Stream\u306b\u3088\u308b\u5b9f\u88c5<\/h3>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4873117046\/ref=as_li_ss_tl?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4873117046&amp;linkCode=as2&amp;tag=typea09-22\" rel=\"nofollow\">Java\u306b\u3088\u308b\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u2015Java 8\u30e9\u30e0\u30c0\u5f0f\u3068Stream<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4873117046\" width=\"1\" height=\"1\"> \u3067\u5b66\u3093\u3060\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u306a\u304c\u3089\u3001\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002\u30b3\u30e1\u30f3\u30c8\u4e2d\u3001\u306b \u300c2.4 \u30e9\u30e0\u30c0\u5f0f\u306e\u518d\u5229\u7528\u300d\u3068\u304b\u66f8\u3044\u3066\u3044\u308b\u306e\u306f\u3001\u4e0a\u8a18\u66f8\u7c4d\u306e\u53c2\u7167\u7ae0\u3002<\/p>\n<pre class=\"prettyprint linenums\">package info.typea.jra.stat;\r\n\r\nimport java.io.BufferedReader;\r\nimport java.io.BufferedWriter;\r\nimport java.io.IOException;\r\nimport java.nio.file.DirectoryStream.Filter;\r\nimport java.nio.file.Files;\r\nimport java.nio.file.Path;\r\nimport java.nio.file.Paths;\r\nimport java.util.ArrayList;\r\nimport java.util.Collections;\r\nimport java.util.List;\r\n\r\n\/**\r\n * \u6255\u623b\u30d5\u30a1\u30a4\u30eb  \u306e\u7d71\u8a08\u5206\u6790\r\n *\/\r\npublic class HaraiStat {\r\n\r\n    \/** \u30c7\u30fc\u30bf\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea *\/\r\n    private static final String JRAVAN_DATA_DIR = \"E:\\\\jravan\\\\data\";\r\n    \r\n    \/** \u6255\u623b \u30d5\u30a1\u30a4\u30eb\u540d\u30d5\u30a3\u30eb\u30bf *\/\r\n    \/\/ 2.4 \u30e9\u30e0\u30c0\u5f0f\u306e\u518d\u5229\u7528\r\n    private static final Filter<path> haraiFileFilter = path -&gt; path.getFileName().toString().startsWith(\"HR\");\r\n\r\n    \/**\r\n     * \u6255\u623b\u30d5\u30a1\u30a4\u30eb \u304b\u3089 \u5358\u52dd\u6255\u623b_\u6255\u623b\u91d1\u983b\u5ea6\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\r\n     * \r\n     * @return\r\n     * @throws IOException\r\n     *\/\r\n    public static void makeTanHaraiHistgramData() throws IOException {\r\n        \r\n        List<integer> tanHaraiList = new ArrayList&lt;&gt;();\r\n        \r\n        \/* ****************************************\r\n         *  \u6255\u623b\u30d5\u30a1\u30a4\u30eb \u304b\u3089 \u5358\u52dd\u6255\u623b_\u6255\u623b\u91d1 \u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\r\n         * ****************************************\/\r\n        \r\n        \/\/ 3.6 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u3092\u30ea\u30b9\u30c8\r\n        Files.newDirectoryStream(Paths.get(JRAVAN_DATA_DIR),haraiFileFilter)\r\n            .forEach(path -&gt; {\r\n                try(BufferedReader reader = Files.newBufferedReader(path)){\r\n                    \/\/ 2.7 \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u5358\u4e00\u306e\u8981\u7d20\u306b\u96c6\u7d04\r\n                    \/\/ 3.4 collect \u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528\r\n                    List<integer> tanHaraiTempList = \r\n                        reader.lines()\r\n                            .mapToInt(line -&gt; Integer.parseInt(line.substring(104, 113)))\r\n                            .collect(ArrayList::new, ArrayList::add, ArrayList::addAll)\r\n                            ;\r\n                    tanHaraiList.addAll(tanHaraiTempList);\r\n                }catch(IOException e) {\r\n                    \/\/ 4.6 \u4f8b\u5916\u51e6\u7406\r\n                    throw new RuntimeException(e);\r\n                }\r\n            });\r\n        \r\n        \/* ****************************\r\n         * \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u7d50\u679c\u3092\u51fa\u529b\u3059\u308b\r\n         * ****************************\/\r\n        \r\n        Collections.sort(tanHaraiList);\r\n        int cnt = tanHaraiList.size();\r\n        int min = tanHaraiList.get(0);\r\n        int max = tanHaraiList.get(cnt-1);\r\n        int range = max - min;\r\n        int histCnt = (int)Math.sqrt(max);\r\n        int histWid = (int)Math.ceil(((double)range) \/ histCnt);\r\n        double firstPeriod = min - (100d \/ 2d);\r\n        \r\n        try (BufferedWriter writer = Files.newBufferedWriter(Paths.get(\"c:\\\\work\\\\jra\\\\jraout.txt\"))) {\r\n            int sep = 1;\r\n            for (Integer harai : tanHaraiList){\r\n                writer.write(String.format(\"%d%s\", harai, (((sep++ % 100)== 0)?\"\\r\\n\":\"    \")));\r\n            }\r\n            \r\n            writer.write(\"\\r\\n\\r\\n\");\r\n            writer.write(String.format(\"\u30c7\u30fc\u30bf\u306e\u500b\u6570    %d\\r\\n\", cnt));\r\n            writer.write(String.format(\"\u6700\u5927\u5024    %d\\r\\n\", max));\r\n            writer.write(String.format(\"\u6700\u5c0f\u5024    %d\\r\\n\", min));\r\n            writer.write(String.format(\"\u7bc4\u56f2    %d\\r\\n\", range));\r\n            writer.write(String.format(\"\u533a\u9593\u306e\u6570    %d\\r\\n\", histCnt));\r\n            writer.write(String.format(\"\u533a\u9593\u306e\u5e45    %d\\r\\n\", histWid));\r\n            \r\n            writer.write(\"\\r\\n\\r\\n\");\r\n            writer.write(\"\u30c7\u30fc\u30bf\u533a\u9593\\r\\n\");\r\n            double period = firstPeriod;\r\n            while(period &lt;= (double)max) {\r\n                writer.write(String.format(\"%#.1f\\r\\n\", period));\r\n                period += histWid;\r\n            }\r\n            \r\n        } catch (IOException e) {\r\n            e.printStackTrace();\r\n        } finally{\r\n            System.out.println(\"Finish!\");\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>\u5b9f\u969b\u306b\u306f\u3001\u300c\u6255\u623b\u30d5\u30a1\u30a4\u30eb \u304b\u3089 \u5358\u52dd\u6255\u623b_\u6255\u623b\u91d1 \u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u300d \u306e\u90e8\u5206\u304c\u3001\u4e3b\u773c\u306e\u3001Java 8 \u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001Java Doc \u8aad\u3093\u3060\u307b\u3046\u304c\u3044\u3044\u3067\u3059\u304b\u306d\u3002<\/p>\n<p><a title=\"http:\/\/docs.oracle.com\/javase\/jp\/8\/api\/java\/util\/stream\/Stream.html\" href=\"http:\/\/docs.oracle.com\/javase\/jp\/8\/api\/java\/util\/stream\/Stream.html\">http:\/\/docs.oracle.com\/javase\/jp\/8\/api\/java\/util\/stream\/Stream.html<\/a><\/p>\n<h4>1.2.1 Stream<\/h4>\n<p>\u307e\u305a\u3001Stream\u3068\u306f\u3001<\/p>\n<blockquote>\n<p>\u9806\u6b21\u304a\u3088\u3073\u4e26\u5217\u306e\u96c6\u7d04\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u8981\u7d20\u306e\u30b7\u30fc\u30b1\u30f3\u30b9<\/p>\n<\/blockquote>\n<p>\u3067\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u7528\u306e\u3001IntStream\u3001LongStream\u304a\u3088\u3073DoubleStream \u3082\u5b58\u5728\u3057\u3066\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>\u8907\u6570\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u64cd\u4f5c\u3092\u7d44\u307f\u5408\u308f\u305b\u30661\u3064\u306e<em>\u30b9\u30c8\u30ea\u30fc\u30e0\u30fb\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3<\/em>\u304c\u5f62\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<p>\u3053\u308c\u306f\u30011\u3064\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9 \u306b\u5bfe\u3057\u3066\u30010\u500b\u4ee5\u4e0a\u306e\u4e2d\u9593\u64cd\u4f5c\u30011\u3064\u306e\u7d42\u7aef\u64cd\u4f5c\u304b\u3089\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4e2d\u9593\u64cd\u4f5c\u306f\u3001\u30e9\u30e0\u30c0\u5f0f\u306e\u3088\u3046\u306a\u52d5\u4f5c\u3092\u8a18\u8ff0\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d75\u306b\u3059\u308b\u3068\u3001\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/java8_stream_image_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"java8_stream_image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"java8_stream_image\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/java8_stream_image_thumb.jpg\" width=\"489\" height=\"115\"><\/a><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30eaStream \u304b\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u3068\u304d\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5148\u982d\u6587\u5b57\u306b\u30de\u30c3\u30c1\u3055\u305b\u308b\u30e9\u30e0\u30c0\u5f0f\u3092\u5909\u6570\u306b\u683c\u7d0d\u3057\u305f\u30d5\u30a3\u30eb\u30bf\u3092\u9069\u7528(\u4e2d\u9593\u64cd\u4f5c)\u3057\u305f\u7d50\u679c\u3092forEach \u3067\u51e6\u7406(\u7d42\u7aef\u64cd\u4f5c)\u3057\u3064\u3064\u3001\u3001\u3001\u3055\u3089\u306b\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u3093\u3060\u884c\u3092Stream\u3068\u3057\u3066\u3001\u884c\u306e\u4e00\u90e8\u5206\u3092\u5207\u308a\u51fa\u3057\u3001int \u578b Stream \u306b\u5909\u63db(\u4e2d\u9593\u64cd\u4f5c) \u3057\u305f\u7d50\u679c\u3092 \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u5909\u63db(collect \u7d42\u7aef\u64cd\u4f5c) \u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6982\u5ff5\u304c\u5206\u304b\u3063\u3066\u3044\u308c\u3070\u3001\u51e6\u7406\u3092\u547d\u4ee4\u306e\u7f85\u5217\u3067\u306f\u306a\u304f\u3001\u5ba3\u8a00\u7684\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>1.3 \u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b<\/h2>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4798133833\/ref=as_li_ss_tl?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4798133833&amp;linkCode=as2&amp;tag=typea09-22\" rel=\"nofollow\">EXCEL\u30d3\u30b8\u30cd\u30b9\u7d71\u8a08\u5206\u6790 \uff3b\u30d3\u30b8\u30c6\u30af\uff3d \u7b2c2\u7248 2013\/2010\/2007\/2003\u5bfe\u5fdc<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4798133833\" width=\"1\" height=\"1\"><\/p>\n<p>\u300c002 \u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u306b\u306f\u300d\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u3001\u5410\u304d\u51fa\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u3092Excel(2003\u3057\u304b\u306a\u3044\u306e\u30672003\u306b)\u8cbc\u308a\u4ed8\u3051\u3001\u30c7\u30fc\u30bf\u5206\u6790(\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a2\u30c9\u30aa\u30f3\u306e\u6709\u52b9\u5316\u304c\u5fc5\u8981)\u304b\u3089\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/java8_stat_hist_4.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"java8_stat_hist\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"java8_stat_hist\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/java8_stat_hist_thumb_1.jpg\" width=\"452\" height=\"211\"><\/a><\/p>\n<p>\u5165\u529b\u7bc4\u56f2\u306b\u3001\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u90e8\u5206\u3001\u30c7\u30fc\u30bf\u533a\u9593\u306b\u3001\u30c7\u30fc\u30bf\u533a\u9593\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b0\u30e9\u30d5\u306e\u4f5c\u6210\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u3001OK<\/p>\n<p><a href=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/java8_stat_hist_graph_2.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"java8_stat_hist_graph\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"java8_stat_hist_graph\" src=\"http:\/\/typea.info\/blg\/glob\/Windows-Live-Writer\/36642b289dd1_1495C\/java8_stat_hist_graph_thumb.jpg\" width=\"510\" height=\"234\"><\/a><\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306e\u30b0\u30e9\u30d5\u304c\u3067\u304d\u307e\u3057\u305f\uff5e<\/p>\n<p>\u30c7\u30fc\u30bf\u306e\u7279\u6027\u3068\u3057\u3066\u3001\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b\u610f\u5473\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3068\u304b\u3088\u304f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3002\u3002\u3002<\/p>\n<p>9\u4e07\u4ef6\u7a0b\u5ea6\u306e\u7d50\u679c\u306e\u96c6\u8a08\u306a\u3093\u3067\u3059\u304c\u3001500\u5186\u672a\u6e80\u30674\u4e078\u5343\u4ef6\u7a0b\u5ea6\u3042\u308b\u306e\u3067\u3001\u534a\u6570\u306f\u3001500\u5186\u672a\u6e80\u306e\u99ac\u304c\u52dd\u3063\u3066\u308b\u3093\u3067\u3059\u306d\u3002\u30d1\u30ec\u30fc\u30c8\u56f3\u306b\u3059\u308b\u3068\u3088\u304f\u308f\u304b\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4478820090\/ref=as_li_ss_il?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4478820090&amp;linkCode=as2&amp;tag=typea09-22\" rel=\"nofollow\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4478820090&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4478820090\" width=\"1\" height=\"1\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u308d\u305d\u308d\u3001Java8\u3092\u8a66\u3057\u3066\u307f\u3088\u3046\u3068Java7\u306e\u304a\u3055\u3089\u3044\u3092\u3057\u3066\u304b\u3089\u3001\u6c17\u3065\u3051\u30701\u5e74\u4ee5\u4e0a\u305f\u3063\u3066\u307e\u3059\u3002 \u3057\u304b\u30571\u5e74\u304c\u305f\u3064\u306e\u306f\u65e9\u3044\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u672c\u3092\u8aad\u4e86\u3057\u305f\u306e\u3067\u3001\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u3066\u3001\u30e9\u30e0\u30c0\u5f0f\u3084\u3089\u306a\u3093\u3084\u3089\u3092\u8eab\u306b\u7740\u3051\u3066\u304a\u304d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[6,86],"tags":[],"class_list":["post-463","post","type-post","status-publish","format-standard","hentry","category-java","category-statistics"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}