What is the difference between chars() and codePoints() method in CharSequence interface?
I read javadoc, but don’t understand the differences, both of them return same result. Also can anyone explain what is ‘zero-extending’ means? Javadoc of chars() method Returns a stream of int zero-extending the char values from this sequence. Any char which maps to a surrogate code point is passed through uninterpreted. The stream binds to… Read More What is the difference between chars() and codePoints() method in CharSequence interface?