Example #1
0
 public SpoonPool()
 {
     for (single = 0; single < 4; single++)
     {
         SingleSpoon.getInstance();
     }
 }
Example #2
0
        public SingleSpoon release()
        {
            if (SingleSpoon.getInstance() == null)
            {
                Console.WriteLine("no more releases");

                return(spoons[single--]);
            }
            else
            {
                Console.WriteLine("No More Spoons");
            }

            return(spoons[single]);
        }