There are plenty of ways to do this. I'd advise you avoid using relics of the past like Stack in favor of using the newer Deque collection. I quote:
You can even convert a Deque into a LIFO Queue...
Type: Posts; User: veeer
There are plenty of ways to do this. I'd advise you avoid using relics of the past like Stack in favor of using the newer Deque collection. I quote:
You can even convert a Deque into a LIFO Queue...