
public class Book {

	private int isbnno;
	private String bookName;
	private String author;
	
	public int getIsbnno() {
		return isbnno;
	}
	
	public void setIsbnno(int isbnno) {
		this.isbnno = isbnno;
	}
	
	public String getBookName() {
		return bookName;
	}
	
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	
	public String getAuthor() {
		return author;
	}
	
	public void setAuthor(String author) {
		this.author = author;
	}
	
	public String toString(){
	    return ("ID: "+getIsbnno()+", NAME: "+getBookName()+", AUTHOR: "+getAuthor());
	}
	
	public boolean equals(String o){
	    if(getAuthor().equals(o))
	        return true;
	    else
	        return false;
	}
}

