What will be the output of the following code? -------------------- public static void main(String[] args) { List<String> list = Arrays.asList("apple", "banana", "cherry"); Boolean result = list.stream().allMatch(Pattern.compile("[a-z]{6}").asPredicate()); System.out.println(result); }
Geekific
What will be the output of the following code?
--------------------
public static void main(String[] args) {
List<String> list = Arrays.asList("apple", "banana", "cherry");
Boolean result = list.stream().allMatch(Pattern.compile("[a-z]{6}").asPredicate());
System.out.println(result);
}
2 months ago | [YT] | 4