The terms "stacks" and "queues" are terms used in java programming. They have to do with inserting an item and removing an item. There are certain rules for removing items. The policy for queues is known as "first in first out" and the policy for stack is "last in first out". You can find much more information on "application of stack and queues" here: http://www.cs.princeton.edu/introcs/43stack/.