Consider the program:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main() { String str1; String str2; Console.Write("Enter String : "); str1 = Console.ReadLine(); str2 = str1.Remove(0, 5); Console.WriteLine("String after remove method : " + str2); } } }
Output
Enter String : This is India String after remove method : is India
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Consider the program:
Output