public final class ArrayBag /* implements BagInterface //this should be here, but not all of the interface will be implemented in class*/ { private final T[] bag; private int numberOfEntries; /** Adds a new entry to this bag. @param newEntry The object to be added as a new entry. @return True if the addition is successful, or false if not. */ public boolean add(T newEntry) { } // end add /** Removes one occurrence of a given entry from this bag. @param anEntry The entry to be removed. @return True if the removal was successful, or false if not. */ public boolean remove(T anEntry) { } // end remove /** Removes one unspecified entry from this bag, if possible. @return Either the removed entry, if the removal was successful, or null. */ public T remove() { } // end remove } // end ArrayBag