Reverse Each Word In Given String | Java | Ashok IT

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ค. 2020
  • #ReverseWords #StringsCodingChallenges #ashokit
    ✍️✍️ Register Here For Online Training : bit.ly/3Crpgbr
    ** For Online Training ► Call: +91-6301921083
    Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
    💡 Visit Our Website
    For Online Training: www.ashokit.in
    💡 About Ashok IT :
    Ashok IT is the No.1 quality training institute in India for the candidates who want to build their future in Information Technology. We are into online training, class room training, corporate training and one to one training with more passion and dedication. Ashok IT aims in providing best quality realtime oriented trainings on C, C++, Java, Spring , Spring REST, Spring Cloud, Microservices, Python, DJango, .Net, Angular, React JS, Salesforce, , Testing, Android, Docker, Kubernates, Manual Testing, Selenium and Digital Marketing.
    -----------------------------------------------------------------------------------
    💡 Our Online Training Features
    🎈 Training with Real-time Working Professionals
    🎈 Industry Matching use cases
    🎈 Live Coding
    🎈 Real-time Environment
    🎈 Class Notes
    🎈 Doubts Clarifications in Each Session
    -----------------------------------------------------------------------------------
    💡 Contact details:
    ☎ WhatsApp Number: +91-6301921083
    ► Website : www.ashokit.in
    ► Join with us in Telegram : bit.ly/3iP2KyA
    ► Like us in Facebook : bit.ly/3dw6R0A
    ► Follow us in Instagram : bit.ly/3jzEKl8
    ► Follow us in Twitter : bit.ly/2SDqdK4

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

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

    💡 Welcome to Ashok IT..!! 💡
    👉 Register Here For Online Training : bit.ly/3Crpgbr
    🔥 Download Android App : bit.ly/3Z2vXcO
    🔥 Download IOS App (MyInstitute) : apple.co/3IcEao3
    👉 ORG Code For IOS : CNFXJ
    🌐 Visit Our Website : ashokitech.com/

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

    This was very helpful Sir...Thank you🤗

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

    Can you show it using regular for loop?

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

    This was very helpful sir but not working while taking input using scanner

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

    package inheritance;
    class Stringformat{
    static String reverseString(String str) {
    StringBuffer s = new StringBuffer(str);
    s.reverse();
    return s.toString();

    }
    }
    public class StringbufferExample {
    public static void main(String[] args) {
    System.out.println(Stringformat.reverseString("suraj"));
    System.out.println(Stringformat.reverseString("kaushik"));
    }
    }

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

    Dont use split method

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

    what is written by you is not visible

  • @SureshKumar-dv2ki
    @SureshKumar-dv2ki 3 ปีที่แล้ว +1

    Hi sir
    i want reverse only ''Java"... like below example.
    avaJ code

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

      Hi. I just tried ..But not sure. how much good it is..
      String input="Java code";

      String[] word=input.split(" ");

      String str = word[0];
      String rev="";

      for(int i=str.length()-1; i>=0;i--)
      {
      rev = rev+str.charAt(i);

      }

      System.out.println(rev);

      System.out.println(rev + " " + word[1]);
      Please provide your comments. Whether can we have like this..

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

      Public class demo {
      Public static void main (string [ ] args)
      {
      String S1= " Jspiders";
      For( int i= s1.length() -1;i>=0;i--){
      System.out.println( S1.charAt( i));
      }
      }

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

    String str="hello world";

    String [] words=str.split(" ");



    for(String m1:words)
    {
    //System.out.println(m1);

    for(int i=m1.length()-1;i>=0;i--)
    {
    System.out.print(m1.charAt(i));

    }
    System.out.print(" ");
    }
    }
    }