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

2 Answers
2

Leave a Reply

Your email address will not be published. Required fields are marked *