A Java program to manage Movies, Books, and Journals with inheritance, polymorphism, file I/O, and custom comparators.
- Supports multiple item types:
- Movie: id, title, year, director
- Book: id, title, year, author, pages
- Journal: id, title, year, volume, issue
- CRUD operations (add, update, delete, search)
- File persistence (
data/library.txt) - Comparator for custom sorting (e.g., by rating, year)
Path: data/library.txt
- Movie,200,Remember The Alamo,1945,George Smith
- Book,240,Garden Projects At Home,1998,Mary Freeman,164
- Journal,215,J of Logic,2008,23,14
# compile
javac -d out src/*.java
# run (no packages)
java -cp out LibrarySystem