// Checks the Out Stack to see if it is empty. // If it is, move all Nodes in the In Stack to the Out Stack. private void FillOutIfEmpty() { if (Out.Peek() == null) { while (In.Peek() != null) { Out.Push(In.Pop()); } } }