Answers for "filter array elements"

0

filter array elements

int[] a = {1,2,3,4};
boolean contains = IntStream.of(a).anyMatch(x -> x == 4);
Posted by: Guest on July-26-2021

Code answers related to "filter array elements"

Browse Popular Code Answers by Language