Question: QUESTION 1 AND 2 PLEASE Question 1 (1 point) Enable the enhanced for-loop by implementing the Iterable interface for the OrderedBookBag class. Assume an Iterator
QUESTION 1 AND 2 PLEASE
Question 1 (1 point) Enable the enhanced for-loop by implementing the Iterable interface for the OrderedBookBag class. Assume an Iterator already exists for OrderedBookBag. public class OrderedBookBag { private Book [] data; private int manyItems; Question 2 (1 point) Write an enhanced for-loop that displays all the Books in an OrderedBookBag
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
