How to remove the first character from a string in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = "c# java c++";

            s = s.Remove(0, 1);

            Console.WriteLine(s);
        }
    }
}

/*
run:

# java c++

*/

 



answered Jan 21, 2017 by avibootz

Related questions

1 answer 113 views
2 answers 174 views
1 answer 150 views
3 answers 286 views
2 answers 272 views
1 answer 125 views
1 answer 153 views
...