Does someone know how to do Book Inventory System in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Does someone know how to do Book Inventory System in java?

• Create some definition classes for book (including its stock quantity on hand), author, and publisher. • Create a driver class to demonstrate the application of classes. In this class, you need to create an array to keep records about the books. You need to hard code the records of 10 books and provide the following functions in a simple menu: o View All Book Information o Search the Information of a Book o Edit the Information of a Book o Delete a Book

8th Nov 2018, 7:24 AM
Miko Khoh
6 Answers
+ 1
Miko, just create inside driver class list of books where you will keep all your book objects. Like List<Book> books And implement all your requested methods with actions on this list.
8th Nov 2018, 2:43 PM
Michal
Michal - avatar
+ 1
You can take a look on my code for search engine challange https://code.sololearn.com/crDP2uLe1Pno/?ref=app
8th Nov 2018, 2:46 PM
Michal
Michal - avatar
+ 1
Miko it depends what concept do you have. If you want to do more actions without rerunning app use switch.
8th Nov 2018, 2:52 PM
Michal
Michal - avatar
0
Is it your homework?
8th Nov 2018, 1:58 PM
Michal
Michal - avatar
0
Michal yes, i have done the 3 classes , book.java, author.java and publisher.java. But i dont know how to do the driver.java. It need to create an array ... and also provide the following functiom.
8th Nov 2018, 2:38 PM
Miko Khoh
0
Michal thank you very much! so i need to use switch case too?
8th Nov 2018, 2:50 PM
Miko Khoh