Reverse each word in a string using c#

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

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

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 5 лет назад

    very interesting

  • @ymtan
    @ymtan 9 лет назад +3

    wow...fantastic code. Thank you very much sir. You are a great teacher

  • @raqibul1000
    @raqibul1000 9 лет назад +1

    Nice Tutorial.

  • @499surendra
    @499surendra 8 лет назад

    Good tutorials...explanation is very clear...

  • @fujifilm2222
    @fujifilm2222 4 месяца назад

    thanks brother

  • @drstrangelove9851
    @drstrangelove9851 5 месяцев назад

    I prefer to use a foreach loop. It's more readable and understandable.

  • @dheemanthanand731
    @dheemanthanand731 3 года назад

    Thank You Sir

  • @srikantsuryawanshi1503
    @srikantsuryawanshi1503 3 года назад

    Hi Venkat,
    I am just happy with all the learning of concept till date, but i request you to upload video on programming, i mean to have strong knowledge on programming, like Array programs, String manipulation programs, rest of the programs usally asked in interview t evalvate person programming knowledge and please help to make video on how to understand call stack and debugging from scratch, it would be really help full Venkat
    Thanks

  • @jahanzaibshahid07
    @jahanzaibshahid07 5 лет назад

    outclass man

  • @conaxlearn8566
    @conaxlearn8566 4 года назад

    Reading the signature of C# is always a challenge to me.

  • @santoshbhagawat-bomblekar2339
    @santoshbhagawat-bomblekar2339 9 лет назад +3

    Can we store image in session??? This was the question which I faced in an interview

  • @dosovi4548bustayes
    @dosovi4548bustayes 9 лет назад +1

    great code

  • @kawsartechnologies981
    @kawsartechnologies981 Год назад

    Sir, what is the real usage of string reverse operations. Please give an example.

  • @raj169265
    @raj169265 8 лет назад +1

    can we use this code it is very simple also.... please describe difference between both the codes
    static void Main(string[] args)
    {
    Console.WriteLine("Enter a sentence");
    string s = Console.ReadLine();
    string[] a = s.Split(' ');
    Array.Reverse(a);
    Console.WriteLine("after reverse your sentence you get:");
    for(int i=0;i

  • @aarispradhan3771
    @aarispradhan3771 8 лет назад

    i was given a project about the human resource management. there are many employees in an IT company. one of them is a programmer whose have attributes :: programming language and hava a behaviour of code, fix, and bugs. now i don't understand how to write a program for this.can you show me a sample solution for this one plzzzzzzz.

  • @kiBlack3
    @kiBlack3 9 лет назад

    also, great style of indenting lines when using the LINQ Dot operators, makes the code more readable... (beast Mode)

  • @sphxcyprex1923
    @sphxcyprex1923 5 лет назад

    Alternative method:
    string inputString = "One Two Three Four Five";
    var InPutArray= inputString.ToCharArray();
    Array.Reverse(InPutArray);
    var joinedString = string.Join("", InPutArray);

    • @dattakashiwale
      @dattakashiwale 3 года назад

      along with each word, you're reversing the word too that's not the requirement , we should only reverse the character in each string not reversing the word...,

  • @amar184
    @amar184 5 лет назад

    How to sort strings like this???

  • @Leelakrishna9
    @Leelakrishna9 7 лет назад

    Mr kudvenkat can u write the program for, how many times repeated the same words in a given statement?

  • @ahmed54563
    @ahmed54563 7 лет назад

    Sir if my ID is like N001,N002... and I want to print all ID once but per ID per page how to loop or what is the easy method in c# using visual studio

  • @sudhanprakash3303
    @sudhanprakash3303 6 лет назад +1

    Thank you for your videos sir, i got job becuase of your video before 5 years. Thank you. am telling my friends to watch your videoS :). tHANKS AGAiN:). hOPE YOU WLL REPLY.

  • @I-PixALbI4-I
    @I-PixALbI4-I 4 года назад

    I have the same task but i need to ignore numbers, what to write in code to ignore numbers?

  • @AliHassanLearnMVC
    @AliHassanLearnMVC 8 лет назад

    Consider a string like *** string word = " Company is Great" *** Make a program that will convert the string array to be like
    Great is Company ......Please Make a Video on this...

    • @mayankpant2297
      @mayankpant2297 8 лет назад +2

      +Ali Hassan string inp="company is great";
      string [] spstr=inp.Split(' ');
      Array.Reverse(spstr);
      string resullt =String.Join(" ", spstr);
      Console.WriteLine(resullt);

    • @AliHassanLearnMVC
      @AliHassanLearnMVC 8 лет назад

      +Mayank Pant thanks...it was very easy with linq

    • @mayankpant2297
      @mayankpant2297 8 лет назад

      Ok...i wanna learn linq

    • @mayankpant2297
      @mayankpant2297 8 лет назад +1

      +Ali Hassan string reversestr = string.Join(" ", inp.Split(' ').Reverse().ToArray());

  • @mahipalkamanchi
    @mahipalkamanchi 9 лет назад +1

    how we can do this same using without any built functions of c# sir please help me ?

    • @jayfatiya9674
      @jayfatiya9674 8 лет назад

      +mahipal kamanchi
      loop through the whole string wherever space is encountered add that to string variable temp using for loop.
      Add that temp to Arraylist using Add().//eg al.add(temp);
      We require 2 foreach loop one for string and another for character.
      Use outer foreach loop to get every Splitted string from ArrayList.
      Inside outer foreachloop initialize a string variable str1="";
      Add inner foreach loop to get character from every splitted string.
      Save every character in str1.
      Outside inner foreach loop concat str1 to another string variable strrev and append space. rev = rev + str1 + " ";
      Print rev outside outer foreach loop.

    • @mahipalkamanchi
      @mahipalkamanchi 8 лет назад

      +Jay Fatiya
      thank u

  • @RajendraSingh-ik2ny
    @RajendraSingh-ik2ny 8 лет назад

    Sir, What is the use of Static Class?? Plz.. reply this Question and also make a video for this question.........This question ask me on interview...

  • @Trzbne
    @Trzbne 6 лет назад +1

    Thank you very much, this is very helpful! :-)

  • @vishalparikh8623
    @vishalparikh8623 7 лет назад

    can you please explain dependcy injection in C# with examples?

  • @vishalsali7021
    @vishalsali7021 7 лет назад

    Hii sir..
    Can U Give some idea for Get Multiple Computer drive info in one single Console application in single window

  • @guy5767
    @guy5767 2 года назад

    hello, i am trying to reverse words in input text on unity, i am working with c#. i get an error when i write Select, it doesnt seem to recognize this. i dont use to write those clasess aswell, i tryed to write it but it doesnt make sense because i use already in a class that inheritor from other class. can someone please help?

  • @siddalingeshapatil8973
    @siddalingeshapatil8973 7 лет назад

    ERROR :
    Severity Code Description Project File Line Suppression State
    Error CS1503 Argument 2: cannot convert from 'System.Collections.Generic.IEnumerable' to 'string[]'

  • @ravidubey8187
    @ravidubey8187 6 лет назад

    what is split

  • @randy4443
    @randy4443 4 года назад

    if select doesnt work, then write this on top of file: using system.Linq;

  • @kunalkoyande1963
    @kunalkoyande1963 2 года назад

    how to reverse only half string like
    input = "HelloFriends"
    output = "HellosdneirF" or "sdneirFHello"

  • @aarispradhan3771
    @aarispradhan3771 8 лет назад

    how to write a program that counts the number of string. the sentecne ends with dot(.). or ! mark or a question mark
    somebody write this progarm

  • @Sivabalankanyakumari
    @Sivabalankanyakumari 9 лет назад +1

    i am rejected for one interview in this task ........

    • @AliHassanLearnMVC
      @AliHassanLearnMVC 8 лет назад

      +Siva Balan same here....but in my case it was like ( Make a program that will convert the string array to be like
      Company is great to Great is Company )

  • @AshishSingh1990
    @AshishSingh1990 8 лет назад

    Could somebody please tell me how to reverse the order of words in given string?

    • @hinderbot
      @hinderbot 8 лет назад +2

      +Ashish Singh
      string result = "";
      string num = "One,Two,Three,Four";
      string[] theNums = num.Split(',');
      Array.Reverse(theNums);
      result = string.Join(" ", theNums);
      LabelResult2.Text = result;

    • @AshishSingh1990
      @AshishSingh1990 8 лет назад

      +Andre Curry thanks alot 😊😊

  • @kkpsychogamer1671
    @kkpsychogamer1671 5 лет назад

    print no duplication elements in array & string

  • @AbdulWahab-qg8vs
    @AbdulWahab-qg8vs 3 года назад

    give me job please

  • @Pankaj-je1qx
    @Pankaj-je1qx 5 лет назад

    Sometime you are so slow that it waste our time.