In Java, the closest alternative that's part of the standard language is streams. Off the top of my head, it goes something like this:
List numbers = number_list.stream().filter(number -> number > 3).collect(Collectors.toList())boolean isTrue = Stream.of(boolean_array).anyMatch(Function.identity());
String checkForNull = Optional.ofNullable(some_xml).map(SomeXml::getSomeField).map(SomeField::GetSomeAttribute).orElse("nothing here");