Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java stream min

List<Integer> list = Arrays.asList(-7, -16, 0, 20, 4);
  
       Integer min = list.stream().min(Integer::compare).get();
  
        System.out.print(min);
 
PREVIOUS NEXT
Tagged: #java #stream #min
ADD COMMENT
Topic
Name
1+1 =