How would i subtract that amount from the book inventory


Problem

Can you show me an example on how would i decrement an inventory from arraylist( book). Let's say the book item has 400 books in stock. The user enters the amount of books he wants to buy. How would i subtract that amount from the book inventory/stock? Could u just use a for loop/for each loop?

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: How would i subtract that amount from the book inventory
Reference No:- TGS03261597

Expected delivery within 24 Hours