Given the code fragment:
Which two code fragments, when inserted at line n1 independently, result in the output PEEK: Unix?
A. .anyMatch ();
B. .allMatch ();
C. .findAny ();
D. .noneMatch ();
E. .findFirst ();
Given the code fragment:
Which two code fragments, when inserted at line n1 independently, result in the output PEEK: Unix?
A. .anyMatch ();
B. .allMatch ();
C. .findAny ();
D. .noneMatch ();
E. .findFirst ();
C and E
the answer is C,E
anyMatch,allMatch, noneMatch requires a Prediacte as argument.