Stuff
public text v1 · immutable if(oranges>0)
for(int i=0;i<inv.getSize();i++)
{
if(inv.getProduct(i) instanceof Orange)
{
if(oranges>0)
{
inv.removeProduct(i);
oranges--;
i=0;
}
else
break;
}
}