1z0-809-KR 문제 6

주어진 코드 조각:
Stream<List<String>> iStr= Stream.of (
Arrays.asList ("1", "John"),
Arrays.asList ("2", null)0;
Stream<<String> nInSt = iStr.flatMapToInt ((x) -> x.stream ());
nInSt.forEach (System.out :: print);
반환 결과;
};
str.stream()
.필터(테스트)
.findFirst()
.ifPresent(System.out :: 인쇄);
결과는 무엇입니까?

1z0-809-KR 문제 7

java.util.stream.Stream에 대한 설명으로 옳은 것은?

1z0-809-KR 문제 8

Emp 클래스의 정의가 주어지면:
공개 클래스 Emp
개인 문자열 eName;
개인 정수 eAge;
Emp(String eN, Integer eA) {
this.eName = eN;
this.eAge = eA;
}
public Integer getEAge () {return eAge;}
public String getEName () {return eName;}
}
및 코드 조각:
List<Emp>li = Arrays.asList(new Emp("Sam", 20), New Emp("John", 60), New Emp("Jim", 51)); Predicate<Emp> agVal = s -> s.getEAge() <= 60;//line n1 li = li.stream().filter(agVal).collect(Collectors.toList()); Stream<String> names = li.stream()map.(Emp::getEName);//line n2 names.forEach(n -> System.out.print(n + " ")); What is the result?

1z0-809-KR 문제 9

주어진 코드 조각:
LocalDate ValentinesDay =LocalDate.of(2015, Month.FEBRUARY, 14);
LocalDate nextYear = ValentineDay.plusYears(1);
nextYear.plusDays(15); //라인 n1
System.out.println(내년);
결과는 무엇입니까?

1z0-809-KR 문제 10

주어진 코드 조각:

결과는 무엇입니까?