표준입력 (stdin)
실행옵션 (runtime option)
코드:
실행 »
표준입력/실행옵션
import java.util.OptionalInt; import java.util.stream.*; public class prog { public static void main(String[] args){ IntStream stream = IntStream.of(4, 2, 1, 3); OptionalInt result = stream.findFirst(); System.out.println(result.getAsInt()); } }