C# string methods 🔤

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • C# string methods tutorial example explained
    #C# #string #methods
    using System;
    namespace MyFirstProgram
    {
    class Program
    {
    static void Main(string[] args)
    {
    String fullName = "Bro Code";
    String phoneNumber = "123-456-7890";
    //fullName = fullName.ToUpper();
    //fullName = fullName.ToLower();
    //Console.WriteLine(fullName);
    //phoneNumber = phoneNumber.Replace("-","");
    //Console.WriteLine(phoneNumber);
    //String userName = fullName.Insert(0,"Mr.");
    //Console.WriteLine(userName);
    //Console.WriteLine(fullName.Length);
    String firstName = fullName.Substring(0, 3);
    String lastName = fullName.Substring(4, 4);
    Console.WriteLine(firstName);
    Console.WriteLine(lastName);
    Console.ReadKey();
    }
    }
    }
  • Věda a technologie

Komentáře • 35

  • @BroCodez
    @BroCodez  Před 3 lety +12

    using System;
    namespace MyFirstProgram
    {
    class Program
    {
    static void Main(string[] args)
    {
    String fullName = "Bro Code";
    String phoneNumber = "123-456-7890";
    //fullName = fullName.ToUpper();
    //fullName = fullName.ToLower();
    //Console.WriteLine(fullName);
    //phoneNumber = phoneNumber.Replace("-","");
    //Console.WriteLine(phoneNumber);
    //String userName = fullName.Insert(0,"Mr.");
    //Console.WriteLine(userName);
    //Console.WriteLine(fullName.Length);
    String firstName = fullName.Substring(0, 3);
    String lastName = fullName.Substring(4, 4);
    Console.WriteLine(firstName);
    Console.WriteLine(lastName);
    Console.ReadKey();
    }
    }
    }

  • @pauze_play
    @pauze_play Před 9 měsíci +9

    I swear this guy is better than my teacher. I've learnt 2 programming languages from him and now learning C#. You're a life saver bro!

  • @elliotradley4370
    @elliotradley4370 Před rokem +8

    Bro Code is God tier with the tutorials, keep up the excellent work man

  • @KathushGaming
    @KathushGaming Před rokem +6

    bro you are the best i've watched many tutorials and series wasted time (in that time i could study) but you are the best these tutorials are very simple and easy to learn thanks! keep up the work 👍👍👍👍👍👍👍👍👍👍👍👍👍

  • @gamingdude7959
    @gamingdude7959 Před 2 měsíci

    Good tutorails, i love these

  • @spartanranger
    @spartanranger Před 2 lety

    Thanks for the video Bro.

  • @mohamedsakr8166
    @mohamedsakr8166 Před rokem

    thanks for the tutorial

  •  Před 3 lety +1

    Thanks!

  • @alexiscoe1040
    @alexiscoe1040 Před 3 lety +1

    Thanks

  • @Milkshaco
    @Milkshaco Před 2 lety

    awesome

  • @babida9113
    @babida9113 Před rokem

    Thanks bro

  • @the_3d_cookie
    @the_3d_cookie Před rokem

    thanks bro

  • @juriappo354
    @juriappo354 Před 2 lety

    thanks bro,

  • @namrataghorpade9944
    @namrataghorpade9944 Před 2 lety

    Thankyou

  • @DominoDan
    @DominoDan Před rokem

    thx

  • @budderrar5751
    @budderrar5751 Před rokem +1

    noice

  • @WeedmanPro
    @WeedmanPro Před 2 lety +2

    good tutorila
    tortuga
    tutorial

  • @DISAPPOINT814
    @DISAPPOINT814 Před 2 měsíci +1

    String name = "Bro Code";
    String comment = "Best Tutorials ever";

  • @whitedinamo
    @whitedinamo Před 2 lety

    lesson check😇

  • @H4KnSL4K
    @H4KnSL4K Před měsícem

    Troz!

  • @agentyoda2870
    @agentyoda2870 Před 11 měsíci +1

    PLS I CANT KEEP UP U TALK N TYPE 2 FAST :(

    • @godistheonlyway
      @godistheonlyway Před 5 měsíci

      bro try to slow mode the vids so you can keep up bro

  • @pruthvirajchauhan6095
    @pruthvirajchauhan6095 Před 2 lety

    How to swap first name and last name to last name and first name ????

  • @TropicalVids
    @TropicalVids Před měsícem

    random comment

  • @agentyoda2870
    @agentyoda2870 Před 11 měsíci

    T-T

  • @Myotiss22
    @Myotiss22 Před 2 měsíci