C# string methods 🔤
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
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();
}
}
}
Thank you!
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!
SAME!!!
for real like he's a life saver bro
Bro Code is God tier with the tutorials, keep up the excellent work man
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 👍👍👍👍👍👍👍👍👍👍👍👍👍
Good tutorails, i love these
Thanks for the video Bro.
thanks for the tutorial
Thanks!
Thanks
awesome
Thanks bro
thanks bro
thanks bro,
Thankyou
thx
noice
good tutorila
tortuga
tutorial
tutroial
tatareal
tutareal
tutorials
@@Ilijan99 ah yes
String name = "Bro Code";
String comment = "Best Tutorials ever";
lesson check😇
Troz!
PLS I CANT KEEP UP U TALK N TYPE 2 FAST :(
bro try to slow mode the vids so you can keep up bro
How to swap first name and last name to last name and first name ????
just swap it
random comment
T-T