using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
List<string> stringList = new List<string>{"abca","two","three","four","five","six"};
stringList.ForEach(x=>{
Console.WriteLine(x.Replace(x[0],Char.ToUpper(x[0])));
});
}
}
program to replace the first letter with capital letter in each sentences using c# console application but its providing the output like "AbcA".