How to: Java 8 stream's .min() and .max(): why does this compile?
How to: Java 8 stream's .min() and .max(): why does thisย compile?
Java 8 streamโs .min() and .max(): why does this compile?
Note: question originally posted here, but it has since been deletedโฆ
See this code (I know, it is absurd I just extracted it from the linked question):
ArrayList list = new ArrayList(); for (int i = 1; i <= 20; i++) list.add(i); System.out.println(list.stream().max(Integer::max).get());โฆ
View On WordPress












