Due: Tuesday, Nov. 4
Write a new public void method for your Inventory class called removePart which takes as input the index of a part in your inventory ArrayList. Check to see that the index is in range (>= 0, < inventory.size()). Retrieve the name of the part and use it in a message to the user asking if the user to confirm that that part is to be deleted. If the first character of the user's response is a 'Y' or a 'y' delete the record (inventory.remove(index)) otherwise do nothing. In either case, write a brief message saying that the part has or has not been deleted. For this exercise, turn in a listing of the Inventory class with the added method.