표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.Arrays; import java.util.stream.*; public class prog { public static void main(String[] args){ String[] arr = {"I study hard", "You study JAVA", "I am hungry"}; Stream<String> stream = Arrays.stream(arr); stream.flatMap(s -> Stream.of(s.split(" +"))).forEach(System.out::println); } }