Thanks, it works now...
But I have one more question
This is my question:
In a real application, above prices would be retrieved
from a database, of course.
How can I do this?
private final float CAR1_PRICE = 1.45F;
private final float CAR2_PRICE = 1.75F;
My codes:
I can get only price for last or first car in my DB.
Qt is OK.
Total cost is OK.
Thanks