Exemplo n.º 1
0
 public static void Main(string[] args)
 {
     Reverser reverser = new Reverser ();
     string teststr = "how are you today";
     string result = reverser.Reverse (teststr);
     Console.WriteLine (result);
 }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            Reverser reverser = new Reverser();
            string   teststr  = "how are you today";
            string   result   = reverser.Reverse(teststr);

            Console.WriteLine(result);
        }
        public static void Main(string[] args)
        {
            string result = Reverser.Reverse("    how     are     you    today    ");

            Console.WriteLine("/" + "    how     are     you    today    " + "/");
            Console.WriteLine("/" + result + "/");
            Console.WriteLine("/" + Reverser.ReverseBetter("    how     are     you    today    ") + "/");
            Console.WriteLine("/" + "    " + "/");
            Console.WriteLine("/" + Reverser.Reverse("    ") + "/");
            Console.WriteLine("/" + Reverser.ReverseBetter("    ") + "/");
        }