Question: urgent pls Write a Java program that simulates a basic library delivery system. The user of the program will be able to add different types
Write a Java program that simulates a basic library delivery system. The user of the program will be able to add different types of items to library collection. In your program, as the main data structure. use the generic collection class ArrayList to store String references. Create three instances from ArrayList of String references. The first one will store the types, the second one will store the items, and the third one will store the owners of the items. The types are exactly the following: "Book", "DVD", "Magazine". The items and their owners will be read from the keyboard Regarding the matching between an item and its owner, the location (index value) of an item in the list of items will be the same with the location of its corresponding owner in the list of owners. As the next step, create the fourth instance from ArrayList of String references and call this list as itemsDeliveredByOwners. This last list will store String references to indicate the owners of the items (such as the following: "ownerX has delivered the itemNamey from Lype2 collection"), After reading any number of items and their owners, the program will finally print the contents of Items DeliveredByOwners list. Please consider the sample output shown below: Please choose the type of the stem from below list: Pcess for Book Press 2 for DVD Press 3 Por Magazine 1 Please enter the item The Lord of the Rings: The Fellowship of the Ring Please enter the owner of the item: Cgkan Uludagli Press 1 to continue adding item. O to exit 1 Please choose the type of the item from below list: Press I For Book Press 2 for DVD Press for Magazine 2 Please enter the items Harry Potter and the Philosopher's Stone Please enter the owner of the items Tugay Direk Press 1 to continue adding ite, o ts exit Library information listed below: capkan tudala has delivered the Lord of the Rings: The Fellowship of the Ring from Book collection. Tugay Direk has delivered Barry Potter and the Philosopher's Stone from DVD collection, Work Policy: PLEASE KEEP IN MIND THE ACADEMIC INTEGRITY. You should submit your work to the Blackboard system as a Java source file with the extension java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
