In Java 8, there is a new method String.chars()
which returns a stream of int
s (IntStream
) that represent the character codes. I guess many people would expect a stream of char
s here instead. What was the motivation to design the API this way?