how java min function works on stream code example Example: java int stream min list.stream().min(Integer::compare).get()