Practice code to refresh on Stacks/Queues in Java.