package com.twu.biblioteca;

public class Book {
    private String author;
    private String bookName;
    private String publishDate;
    private int isbn;
    private boolean isInLibrary;

    public Book(String author, String bookName, String publishDate, int isbn, boolean isInLibrary) {
        this.author = author;
        this.bookName = bookName;
        this.publishDate = publishDate;
        this.isbn = isbn;
        this.isInLibrary = isInLibrary;
    }

    public String showBook() {
        return "bookName=" + bookName +
                ", author=" + author +
                ",isbn=" + isbn +
                ", publishDate=" + publishDate;
    }

    public boolean checkOutBook() {
        if (!isInLibrary) return false;
        isInLibrary = false;
        return true;
    }

    public boolean returnBook() {
        if (isInLibrary) return false;
        isInLibrary = true;
        return true;
    }

    public boolean isInLibrary() {
        return isInLibrary;
    }

    private void setInLibrary(boolean inLibrary) {
        isInLibrary = inLibrary;
    }
}

@@ -929,166 +929,6 @@
  %7D%0A%0A
-    public boolean isInLibrary() %7B%0A        return isInLibrary;%0A    %7D%0A%0A    private void setInLibrary(boolean inLibrary) %7B%0A        isInLibrary = inLibrary;%0A    %7D%0A
 %7D%0A

remove unused method