Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

select max value from list java

  List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(4);
        list.add(2);
        num = list.stream().mapToInt(Integer::intValue).max().getAsInt();
 
PREVIOUS NEXT
Tagged: #select #max #list #java
ADD COMMENT
Topic
Name
5+8 =