표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.stream.*; public class prog { public static void main(String[] args){ IntStream stream1 = IntStream.of(30, 90, 70, 10); DoubleStream stream2 = DoubleStream.of(30.3, 90.9, 70.7, 10.1); System.out.println(stream1.sum()); System.out.println(stream2.average().getAsDouble()); } }