Bookmark Topic Watch Topic
  • New Topic

Help with WHILE loops  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello everybody, don't know if to post it here or in the java beginners section but here are some codes for a homework I have for tomorrow and I am having some issues. The problem I am having is that when I pick 9 products from the menu (Scenario 1), it gives me the total of what it cost. But when I pick only one product from the list (Check Scenario 2 & 3), it STILL gives me the total cost as if I had still picked the 9 products (Check last screenshot). Check images below to understand better.

Any help would be appreciated.

Thanks!







 
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't make the same post in more than one forum. I am closing this.

Any follow-ups should go in the version in Java In General - Beginners.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!