if (contribs.length > capacitiesUsed.length) return false;
  public boolean enoughCapacity (float[] contribs) {    for (int i = 0; i < contribs.length; i++)      if (capacitiesUsed[i] + contribs[i] > capacities[i])        return false;    return true;  }