• 코드:
​x
 
1
import java.util.stream.*;
2
​
3
public class prog {
4
    public static void main(String[] args){
5
        IntStream stream1 = IntStream.of(30, 90, 70, 10);
6
        IntStream stream2 = IntStream.of(30, 90, 70, 10);
7
        
8
        System.out.println(stream1.count());
9
        System.out.println(stream2.max().getAsInt());
10
    }
11
}
표준입력 & 실행옵션