static void Main(string[] args) { Hyphenated x = new Hyphenated(); string[] a = { " now is the ex-", "ample. " }; Console.WriteLine(x.avgLength(a)); Console.ReadLine(); }