Question: Consider the following code used in the controller of an Online Shop App: for (int i = 0; i < allitems.size(); i++) { int
Consider the following code used in the controller of an Online Shop App: for (int i = 0; i < allitems.size(); i++) { int q: if (allitems.get(i).getItemName().equals(itemName) { q=allitems.get(i).getTotalItemQuatity(); q=q-red; allitems.get(i).setTotalItemQuatity(q); what does it do?
Step by Step Solution
There are 3 Steps involved in it
This code iterates over all items in the online shops inventory allitems For each item it c... View full answer
Get step-by-step solutions from verified subject matter experts
