If like me you're wondering why 'chars()' returns an IntStream, you should be interested in this Stack Overflow answer
It's been almost 15 years since I started writing Java, and I must admit that I feel that Java 8 and streams are less coherent than what Java used to be. Having primitives distinct from Object looks unfortunate in retrospect, and make Java 8 streams a bit cumbersome to use in my opinion :/
If like me you're wondering why 'chars()' returns an IntStream, you should be interested in this Stack Overflow answer
It's been almost 15 years since I started writing Java, and I must admit that I feel that Java 8 and streams are less coherent than what Java used to be. Having primitives distinct from Object looks unfortunate in retrospect, and make Java 8 streams a bit cumbersome to use in my opinion :/