if (bucket >= inventoryLevelsArray.length) { return inventoryLevelsArray[inventoryLevelsArray.length-1];
if (bucket >= inventoryLevelsArray.length) { return inventoryLevelsArray[inventoryLevelsArray.length - 1]; } return inventoryLevelsArray[bucket];
  public double getLevel(int bucket) {    if (bucket >= inventoryLevelsArray.length) {      return inventoryLevelsArray[inventoryLevelsArray.length-1];    }    return inventoryLevelsArray[bucket];  }