void (String[] args) { List<String> strings = Arrays.asList(); int sum = strings.stream().mapToInt(CharSequence::length).sum(); List<? extends CharSequence> sequences = strings; sum = sequences.stream().mapToInt(CharSequence::length).sum(); }