>Hi
>I have to writ an new class for a project named "PizzaFride" in this
[quoted text clipped - 87 lines]
>gegessen werden:");
> System.out.println(pizzaToConsume);
-----------------------------------------------------------------------
Do not perform this here. preparePizza will attempt to remove the
current pizzaToConsume for each time through the loop! This will
cause an exception in preparePizza when the remove is attempted.
> preparePizza(pizzaToConsume); // i have paste this
>line
[quoted text clipped - 37 lines]
> private PizzaFridge PizzaFridge;
> private Pizza Pizza;
> public Joe()
> {
[quoted text clipped - 14 lines]
> PizzaFridge.printContent();
> PizzaFridge.whichPizzaShouldIEat();
-------> Determine which pizza to eat.
-------> pizza = PizzaFridge.whichPizzaShouldIEat();
-------> PizzaFridge.preparePizza(pizza);
> PizzaFridge.printContent();
>
[quoted text clipped - 8 lines]
>
>(and sorry for my bad english)
David, Guten Tag...
I see a couple of items that I have made comments on
in your code above.
May I add.
You should never use a variable name which is the
same as the class name. Example Pizza Pizza. This
will become very confussing.
Jim
FopZ - 22 Apr 2007 12:11 GMT
Hi
Thank you very much Jim ! It works :)