Create collection.java

This class was written by the professor as part of an implementation of a postfix calculator.