Oracle 1Z0-809 Exam - Topic 9 Question 27 Discussion
Given the code fragment:List listVal = Arrays.asList(''Joe'', ''Paul'', ''Alice'', ''Tom'');System.out.println (// line n1);Which code fragment, when inserted at line n1, enables the code to print the count of string elements whose length is greater than three?
D) listVal.stream().filter(x -> x.length()>3).mapToInt(x -> x).count()
A) listVal.stream().filter(x -> x.length()>3).count()
B) listVal.stream().map(x -> x.length()>3).count()
C) listVal.stream().peek(x -> x.length()>3).count().get()
Justine
9 months agoVicky
9 months agoMertie
9 months agoTommy
10 months agoGennie
10 months agoReita
10 months agoMozell
10 months agoLuis
10 months agoBuck
10 months agoGary
10 months agoVivan
10 months agoCarey
10 months agoKayleigh
10 months agoAzzie
10 months agoStephanie
1 year agoBrent
1 year agoClorinda
1 year agoJonell
1 year agoKeneth
1 year agoLina
1 year agoJesusa
1 year agoCortney
1 year agoCarin
1 year agoShenika
1 year agoLaticia
1 year agoJohnetta
1 year agoRocco
1 year agoYasuko
1 year agoJamal
1 year agoAlpha
1 year agoEdwin
1 year agoNana
1 year agoJanine
1 year agoChu
1 year agoParis
1 year agoVenita
1 year agoElliott
1 year agoRessie
1 year ago