ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Java Program to Reverse each Word of a String

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ส.ค. 2024

ความคิดเห็น • 75

  • @bhavinpatel9630
    @bhavinpatel9630 6 ปีที่แล้ว +11

    Very nice program, easy to understand and short. Thanks a lot !!!

  • @ritikabali6466
    @ritikabali6466 2 ปีที่แล้ว +2

    loved the explanation and program. easy to understand

  • @RehanAhmad1
    @RehanAhmad1 10 หลายเดือนก่อน

    While doing the exercise in java , i was stuck for 2 days... thanks for keep me moving.

  • @nitheeshreddy6863
    @nitheeshreddy6863 2 ปีที่แล้ว +2

    ❣️❣️❣️ super bro we can stringbuilder as well right to implement this problem ..

  • @Randoms147
    @Randoms147 5 ปีที่แล้ว +1

    nice sir you guys are explaining very important programs for interviews that is very helpful to many students

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  5 ปีที่แล้ว

      Thank you very much for your appreciation. Also i have mentioned the code link in the description box.

  • @technomini3074
    @technomini3074 5 ปีที่แล้ว +1

    Very good explanation. ...I searched a lot of video bt I don't understand....bt your video is very good explanation thankuu srr

  • @davidgromin6481
    @davidgromin6481 4 ปีที่แล้ว

    Thank you so much. This was my homework and now I understand it.

  • @krishna-nakum
    @krishna-nakum 4 ปีที่แล้ว +1

    Very nice 👌👌👍

  • @RehanAhmad1
    @RehanAhmad1 10 หลายเดือนก่อน

    Thanks!

  • @DHEERAJKUMAR-il8zd
    @DHEERAJKUMAR-il8zd 2 ปีที่แล้ว +2

    write a program to reverse each word in a sentence ( don't use any inbuilt functions)
    input : my name is john
    output: ym eman si nhoj
    can you give a solution to this.........

  • @ajitravan3142
    @ajitravan3142 2 ปีที่แล้ว +1

    thanks

  • @anki1746
    @anki1746 4 ปีที่แล้ว

    Simple and good
    🤗

  • @anithak6155
    @anithak6155 4 ปีที่แล้ว

    I'm a beginner. .I'm in love with java.....please help me to clear my doubts

  • @viraltoovideos
    @viraltoovideos ปีที่แล้ว

    Very nice sir

  • @shyamsinghrawat6070
    @shyamsinghrawat6070 3 ปีที่แล้ว +1

    Can I plz do this program easy and simple coz I am unable to understand

  • @saikiran-em8gw
    @saikiran-em8gw ปีที่แล้ว

    How we get space btw words after reversing?

  • @sasireka7974
    @sasireka7974 4 ปีที่แล้ว +1

    Need bit louder sir and yr videos are nice

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  4 ปีที่แล้ว +2

      Thanks, You'll not face any voice related issue in my new videos.

  • @VickyKumar-sl4oj
    @VickyKumar-sl4oj 6 ปีที่แล้ว

    very well Explain...Thanks Bro

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  6 ปีที่แล้ว

      Thanks for your comment.

    • @VickyKumar-sl4oj
      @VickyKumar-sl4oj 6 ปีที่แล้ว

      +Programming Tutorials what I'll do when its dot is there instead of space means if problem is.
      this.is.a.good.boy

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  6 ปีที่แล้ว

      Then in split method specify dot(.) as your delimiter instead of space.

    • @VickyKumar-sl4oj
      @VickyKumar-sl4oj 6 ปีที่แล้ว

      ya but in last dot(.) is comming. (my.name.vicky ) then( ym.eman.ykciv. ) how to remove dot(.) form last place

  • @sriramchandra4537
    @sriramchandra4537 3 ปีที่แล้ว +1

    bro explanation is awesome but sound is irritating pls i want this video without disturbance

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  3 ปีที่แล้ว

      Sorry for that, Please check my new videos you won't face this issue.

  • @Engycation
    @Engycation 2 ปีที่แล้ว +1

    I just registered in your chanel now

  • @thalamaheshnaidu6884
    @thalamaheshnaidu6884 5 ปีที่แล้ว +1

    simple solution

  • @saurabrakshit405
    @saurabrakshit405 4 ปีที่แล้ว

    bro how cursor is going to the "Programming" word after the "Java" word can u please explain

  • @rahulsingh-my3pu
    @rahulsingh-my3pu 5 ปีที่แล้ว

    nice work

  • @pratheekbhat2758
    @pratheekbhat2758 5 ปีที่แล้ว

    What is the length of words.length() ,
    It counts all the words(2) or character (15)

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  5 ปีที่แล้ว +1

      Words is an array of words, So it prints the length of an array. In this case it's 2.

    • @pratheekbhat2758
      @pratheekbhat2758 5 ปีที่แล้ว

      @@ProgrammingTutorials1M Thank You🙂

  • @bilovely7267
    @bilovely7267 4 ปีที่แล้ว

    What about if we have two spaces or more between words ? What should I do?

    • @sushocahtt
      @sushocahtt ปีที่แล้ว

      Use trim method for each word

  • @jaskaran6513
    @jaskaran6513 4 ปีที่แล้ว

    well explained sir but I got indentifier expected error in public static void main string. could you please tell me how I can correct it. Thank you!!

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  4 ปีที่แล้ว

      Can you share your code?

    • @jaskaran6513
      @jaskaran6513 4 ปีที่แล้ว

      @@ProgrammingTutorials1M I wrote the same program which you explained.

  • @gkfactsandquiz3056
    @gkfactsandquiz3056 ปีที่แล้ว

    Sir this takes more time than expected to execute, can you just optimize it and upload

  • @shubhamchavan95
    @shubhamchavan95 2 ปีที่แล้ว

    Can we do same with taking user input?

  • @gottepavani1838
    @gottepavani1838 2 ปีที่แล้ว

    Can i get the output as avaj programming

  • @shabaazhussain5576
    @shabaazhussain5576 5 ปีที่แล้ว

    It will give space at last

  • @vigneshb1287
    @vigneshb1287 2 ปีที่แล้ว

    Split function is a in-built function or not

  • @marcroberttretasco1122
    @marcroberttretasco1122 2 ปีที่แล้ว

    What if I am the one to enter a word?

  • @arihantjain1189
    @arihantjain1189 2 ปีที่แล้ว

    What is that str.split for? never studied about .split in icse 10th

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  2 ปีที่แล้ว

      str.split - The string split() method splits a given string around matches of the given regular expression. Code link - webrewrite.com/java-program-to-reverse-each-words-of-a-string/

  • @gottepavani1838
    @gottepavani1838 ปีที่แล้ว

    I did same

  • @gottepavani1838
    @gottepavani1838 2 ปีที่แล้ว

    Hello sir

  • @ironman-bq6sf
    @ironman-bq6sf 2 ปีที่แล้ว

    Without split

  • @manojthayil7836
    @manojthayil7836 6 ปีที่แล้ว

    Sir why revword ="" is declared in loop

  • @anithak6155
    @anithak6155 4 ปีที่แล้ว

    im confused. ...can I get a explanation? ???

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  4 ปีที่แล้ว

      What's your confusion?

    • @anithak6155
      @anithak6155 4 ปีที่แล้ว

      Programming Tutorials I'm a beginner. ..I don't have clarity on for loop

    • @ProgrammingTutorials1M
      @ProgrammingTutorials1M  4 ปีที่แล้ว

      @@anithak6155 Ok, I create separate videos to explain basics of programming.

    • @anithak6155
      @anithak6155 4 ปีที่แล้ว

      Programming Tutorials
      ok....
      what is the use of
      1) string word=words[i];
      2) string revword =" ";

  • @gottepavani1838
    @gottepavani1838 ปีที่แล้ว

    My output is different from yours y sir

  • @gottepavani1838
    @gottepavani1838 2 ปีที่แล้ว

    Pls sir