In Java 8 - Find minimum of all numbers in IntStream










Program/ Example -
     //In Java 8 - Find minimum of all numbers in IntStream
       OptionalInt min = IntStream.of(9, 5, 3, 12, 4).min();
       System.out.println("min = "+min.getAsInt());
     


Having any doubt? or you you liked the tutorial! Please comment in below section.
Please express your love by liking JavaMadeSoEasy.com (JMSE) on facebook, following on google+ or Twitter.





eEdit
Must read for you :