I am required to write a Library class which can utilize an array of instances o
ID: 3649210 • Letter: I
Question
I am required to write a Library class which can utilize an array of instances of a Book class (provided) to maintain a simple collection of books and perform specified operations on the collection. In this program i am asked to perform an operation in the class library called public void addLibrary(Library l) which adds all books from the given Library, or prints out an error message saying "The library is full" for each book that cannot be added because the array is already full. I have been able to create a method called addbook() which adds a book to the Book array. but if another object of class library is called that can take in a bigger number of arrays then i must add all the books in the first object array to the second object array. does anyone have any idea on how to do this?Explanation / Answer
I understand the problem. i am good in object oriented programming especially in java. Do you want me to code this for you?
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.