public void processProduct(EventProduct Event) { System.out.println(Event.getProduct().getName() + " jest 25% tañszy dziœ!."); double z = Event.getProduct().getPrice(); z = (double) ((double) (z / 25) * 9); try { Event.getProduct().setPrice(z); } catch (PriceException e) { } }
public void processProduct(EventProduct Event) { System.out.println(Event.getProduct().getName() + " przywrocony do standardowej ceny."); double z = Event.getProduct().getPrice(); z = (double) ((double) (z * 10) / 9); try { Event.getProduct().setPrice(z); } catch (PriceException e) { } }
public void processProduct(EventProduct Event) { if (Event.getProduct().getBox()) System.out.println(Event.getProduct().getName() + " box zosta³ zmieniony."); }
public void processProduct(EventProduct Event) { System.out.println(Event.getProduct().getName() + " produkt zosta³ wyczyszczony."); }