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 206 views
2 answers 305 views
1 answer 237 views
3 answers 410 views
2 answers 390 views
1 answer 206 views
1 answer 263 views
...