⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 book.java

📁 这是一个JSP的网上书店
💻 JAVA
字号:
package myBook;

public class Book{
	private int bookno=0;
	private String bookname=null;
	private String author=null;
	private String publisher=null;
	private float price=0.0f;
	public Book(int no,String name,String author,String publisher,float price)
	{
		this.bookno=no;
		this.bookname=name;
		this.author=author;
		this.publisher=publisher;
		this.price=price;
		
	}
	
	public int getBookno()
	{
		return this.bookno;
	}
	public String getBookname()
	{
		return this.bookname;
	}
	public String getAuthor()
	{
		return this.author;
	}
	public String getPublisher()
	{
		return this.publisher;
	}
	public float getPrice()
	{
		return this.price;
	}
	
	public boolean equals(Book b)
	{
		if(this.bookno==b.getBookno())
		{
		  return true;
		}else{
			return false;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -