Пример #1
0
        static Wisdom Make(int key)
        {
            Wisdom        wisdom = null;
            WisdomFactory tmp    = top;

            while (tmp)
            {
                wisdom = tmp.Create(key);
                if (wisdom)
                {
                    return(wisdom);
                }
                tmp = tmp.next;
            }
        }
Пример #2
0
        public static Wisdom Make(int key)
        {
            Wisdom        w   = null;
            WisdomFactory tmp = top;

            while (tmp != null)
            {
                w = tmp.Create(key);
                if (w != null)
                {
                    return(w);
                }
                tmp = tmp.next;
            }
            return(null);
        }