Exemple #1
0
    private static string GetSentenceInput()
    {
        RepeatCounter tester = new RepeatCounter();

        Console.WriteLine("Enter a sentence to search for matches.");
        string sentenceInput = Console.ReadLine();

        if (tester.CheckIfEmpty(sentenceInput))
        {
            Console.WriteLine("Empty sentence to search not valid.  Please try again.");
            Console.WriteLine("-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-");
            sentenceInput = GetSentenceInput();
        }
        return(sentenceInput);
    }