I want to make it possible to invoke this method several times, but with a delay of 10 seconds.
public void addBottle (Pant newBottle)
{
if (pantList.size() == MAXKAPACITY) {
System.out.println("machine is full, please contact service");
}
else {
pantList.add(newBottle);
}
}