Public feed
#948944
public void purchaseForStock(int amount) { if (amount < 1) { throw new IllegalArgumentException("The amount has to be greater than 0."); } this.amount += amount; fire(); } public void purchaseForStock(int amount) { if (amount < 1) { throw new IllegalArgumentException("The amount has to be greater than 0."); } this.amount += amount; fire(); }