
	/** Tests whether this bag contains a given entry.
		 @param anEntry  the entry to locate
		 @return true if this bag contains anEntry, or false otherwise */
	public boolean contains(T anEntry) 
	{
      checkInitialization();
      boolean found = false;
      int index = 0;
      while (!found && (index < numberOfEntries))
      {
         if (anEntry.equals(bag[index]))
         {
            found = true;
         } // end if
         index++;
      } // end while
      
      return found;
	} // end contains
