Periksa keran apakah inventaris kosong

public static boolean checkIfEmpty(Inventory inventory) {
  return inventory.firstEmpty() == 0;
}
Repulsive Reindeer