Beispiel #1
0
    private static string GetWordInput()
    {
        RepeatCounter tester = new RepeatCounter();

        Console.WriteLine("Enter a word to match for counts:");
        string wordInput = Console.ReadLine();

        if (!tester.CheckIfSearchWordValid(wordInput))
        {
            Console.WriteLine("Empty or multiple words to match not valid.  Please try again.");
            Console.WriteLine("-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-=x=-");
            wordInput = GetWordInput();
        }
        return(wordInput);
    }