String program #2- Reverse A String In Java using Java8 Stream API | using Lambda expr by Naren

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 13

  • @ionadsouza1066
    @ionadsouza1066 Год назад +3

    Very good solution

  • @sumitavdash9421
    @sumitavdash9421 6 месяцев назад +3

    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

  • @sanjugen
    @sanjugen Год назад +2

    Good tutorial bro.

  • @MohaideenA
    @MohaideenA 10 месяцев назад +2

    I could simply reverse just by using String string = new StringBuilder(text).reverse().toString();, not involvement of stream. 2nd one is really good.

    • @DarakhshanHayat
      @DarakhshanHayat 3 месяца назад

      but sometimes interviewers mentions that we have to reverse by using stream

  • @raghavanaliassaravananm1546
    @raghavanaliassaravananm1546 11 месяцев назад +3

    Good video. The mouse pointer is distracting at times. Request you to keep it simple for everyone’s benefit

  • @gautamnegi4128
    @gautamnegi4128 10 месяцев назад +2

    Str.chars() is returning a intStream not charStream are both same?

    • @NarenJavaTech
      @NarenJavaTech  10 месяцев назад

      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

  • @deepankersharma3150
    @deepankersharma3150 10 месяцев назад +2

    tagda

  • @prashoo
    @prashoo 11 месяцев назад +2

    Good video nice explanation, but this video could have been less than 3 mins.

    • @raghavanaliassaravananm1546
      @raghavanaliassaravananm1546 11 месяцев назад +1

      Yea but for beginners the slow pace will be really helpful - in my view !

    • @NarenJavaTech
      @NarenJavaTech  11 месяцев назад

      I will try to short the video duration