This C# program uses the Compare and CompareOrdinal methods on strings. The compareTo string method is called.
www.dotnetperls.com