package aaa3;


import java.util.ArrayList;
import java.util.List;

// 书籍类
class Book {
    String title;
    boolean isBorrowed;
    String borrower;
    String borrowDate;
    String returnDate;
    List<String> borrowHistory; // 新增：借阅历史记录
    int inventory;

    public Book(String title) {
        this.title = title;
        this.isBorrowed = false;
        this.borrower = null;
        this.borrowDate = null;
        this.returnDate = null;
        this.borrowHistory = new ArrayList<>();
        this.inventory = 1;
    }
}