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










