Stack Collection Example

Here I’m demonstrating some simple tasks in using a Stack<T> collection. This collection has a trait of LIFO (Last In First Out). Meaning that the last element added is the first element in     the collection. This collection is good if the you need this type of behavior from a collection. A set way of adding and removing elements without having to get into complex algorithms of adding and removing items. Continue reading