14
What is the output of the following program?
import java.util.*;
public class Main {
public static void main(String[] args) {
List<String> w = List.of("apple", "avocado", "banana");
System.out.println(w.stream().anyMatch(s -> s.startsWith("b")) + " " + w.stream().allMatch(s -> s.startsWith("a")));
}
}Medium