All pastes #553577 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-09 19:46 UTC
rendered paste body
    public void printTotaalTaksen() {
        double totaal = 0;
        Iterator it = mandje.iterator();
        while (it.hasNext()) {
            Artikel artikel = ((Aankoop) it.next()).getArtikel();
            if (artikel instanceof ImportArtikel) {
                totaal += ((ImportArtikel) artikel).getInvoerTaks();
            }
        }
        System.out.println("Totaal zonder BTW: €" + totaal);
    }