
int[] arr = {1, 2, 3, 4, 5};
for(int i = 0; i < arr.length; i++) {
System.out.println(arr[i]);
}
//스트림 생성
int[] arr = {1, 2, 3, 4, 5};
Arrays.stream(arr).forEach(n -> System.out,println(n));
----------------- -----------------------------------
//스트림 생성 부분 요소를 하나씩 꺼내어 출력하는 기능filter , distinctmap , flatMaplimit , skipsortedforEach; 요소를 하나씩 꺼내findFirst, findAnycount, min, maxsum, averagecollect