[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

beer + java



public void getDrunk(Alcohol beer) throws OutOfBeerException {
	if (beer.isEmpty()) throw new OutOfBeerException("Refill!");
	else drink(beer);
}

podpis na edin smelchaga v edin newsgroup :)