C# string methods 🔤

preview_player
Показать описание
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();
}
}
}
Рекомендации по теме
Комментарии
Автор

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();


//phoneNumber = phoneNumber.Replace("-", "");


//String userName = fullName.Insert(0, "Mr.");




String firstName = fullName.Substring(0, 3);
String lastName = fullName.Substring(4, 4);


Console.WriteLine(lastName);

Console.ReadKey();
}
}
}

BroCodez
Автор

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!

pauze_play
Автор

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

elliotradley
Автор

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 👍👍👍👍👍👍👍👍👍👍👍👍👍

KathushGaming
Автор

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

DISAPPOINT
Автор

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

agentyoda
Автор

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

pruthvirajchauhan
visit shbcf.ru