str.chars() do not return character stream it returns intstream of ascill value of string character then when we use mapToObj then it return character stream
In Java 8, this is a new method String.chars() which returns a stream of ints (IntStream) that represent the character codes. Why is String.chars() a stream of ints in Java 8? For more details please go thru: intellipaat.com/community/35542/why-is-string-chars-a-stream-of-ints-in-java-8
Very good solution
str.chars() do not return character stream it returns intstream of ascill value of string character then when we use mapToObj then it return character stream
Good tutorial bro.
I could simply reverse just by using String string = new StringBuilder(text).reverse().toString();, not involvement of stream. 2nd one is really good.
but sometimes interviewers mentions that we have to reverse by using stream
Good video. The mouse pointer is distracting at times. Request you to keep it simple for everyone’s benefit
Noted
Str.chars() is returning a intStream not charStream are both same?
In Java 8, this is a new method String.chars() which returns a stream of ints (IntStream) that represent the character codes.
Why is String.chars() a stream of ints in Java 8?
For more details please go thru: intellipaat.com/community/35542/why-is-string-chars-a-stream-of-ints-in-java-8
tagda
Good video nice explanation, but this video could have been less than 3 mins.
Yea but for beginners the slow pace will be really helpful - in my view !
I will try to short the video duration