Update collectionStack.java

removed unnecessary method