객체를 직렬화(Lambda) *JPA Paging 작업시 DB데이터 조회 사용
Arrays.asList(1,2,3,).stream().forEach(System.out::println)
String[] arrStr={"a","b","c"};
List<String> list=Arrays.asList(arrStr);
Arrays.asList(1,2,3,).stream().forEach(m-> System.out.println(m) );
-> 간단히 메소드 참조(::)
Arrays.asList(1,2,3,).stream().forEach(System.out::println)
//리스트객체의 모든 요소가 명령문(괄호안)을 실행
리스트객체.forEach(요소->System.out.println(요소));
//조금 길다 싶으면 이렇게 쓰기도 함.
리스트객체.forEach(요소->
System.out.println(요소)
);