표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.stream.*; public class prog { public static void main(String[] args){ IntStream stream1 = IntStream.of(30, 90, 70, 10); IntStream stream2 = IntStream.of(30, 90, 70, 10); System.out.println(stream1.anyMatch(n -> n > 80)); System.out.println(stream2.allMatch(n -> n > 80)); } }