Stack integers = new Stack(); intergers.Push(3); integers.Push(5); int x = integers.Pop(); // x is now 5 x = integers.Pop(); // x is now 3