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);
Serhat Ture