Winkelmandje
Log in om je oplossingen te testen.
import java.util.ArrayList;
public class Winkelmandje{
private ArrayList<Product> mandje;
public Winkelmandje()
{
mandje = new ArrayList<Product>();
}
public Product duursteProduct()
{
Product duurste = null;
if(mandje.size() > 0){
duurste = mandje.get(0);
}
for ...
return duurste;
}
}
Je kunt zo vaak indienen als je wenst. Er wordt enkel rekening gehouden met je laatst ingediende oplossing.
Log in om je oplossingen te testen.