java stream all elements with minimum values code example Example: java int stream min list.stream().min(Integer::compare).get()