Java9 ãåºãæ¨ä»ã§ãã¾ããã§ãããStream ãã¤ãã©ã¤ã³ãè£ã§ã©ã®ããã«åãã¦ããã®ããã³ã¼ãã交ãã¦ç´¹ä»ãã¾ãã 以ä¸ã®åç´ãªä¾ãå ã«ãå é¨å¦çã追ã£ã¦ããã¾ãããã Arrays.asList("a", "b", "c") .stream() // (1) Stream ã®çæ .filter(String::isEmpty) // (2) ãã¤ãã©ã¤ã³ .forEach(System.out::print); // (3) çµç«¯å¦ç (1) Stream ã®çæ (2) ãã¤ãã©ã¤ã³ (3) çµç«¯å¦ç ã¾ã¨ã (1) Stream ã®çæ æåã¯ã¹ããªã¼ã ãåå¾ãã stream() ã®ä¸èº«ããè¦ã¦ããã¾ãã stream() 㯠Collection ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ããã©ã«ãã¡ã½ããã¨ãã¦ä»¥ä¸ã®ããã«å®ç¾©ããã¦ãã¾ãã public interface Collect
{{#tags}}- {{label}}
{{/tags}}