static void Main(string[] args) { AppClass appobject = new AppClass(); if (args.Length < 1) { System.Console.WriteLine("No string to check."); } else if (args.Length > 1) { System.Console.WriteLine("Only one argument is accepted."); } else { System.Console.Write("The string \""); System.Console.Write(args[0]); System.Console.Write("\" is "); if (appobject.CheckString(args[0]) == false) { System.Console.WriteLine("not acceptable."); } else { System.Console.WriteLine("acceptable."); } } }