code: public boolean contains (E e) {
  		for (int i = 0; size > i; i++) {
  			if (e == data[i]) {
  				return true;
  			}
  		}
  		return false;
  	}
docs: Check if bag contains this element. The operator == is used to check for equality.