bookinf.java

来自「本系统采用的技术方案为JSP +Tomcat+ Access」· Java 代码 · 共 83 行

JAVA
83
字号
/**
 * 这是一个用于储存图书信息的Bean
 */
package bean;

import java.util.*;

public class BookInf{
	
	private String id;  		//书号
	private String name;  		//书名
	private String author;		//作者
	private String publisher;	//出版社
	private String price;		//单价
	private String type;      	//类型
	
	public BookInf(){
		id="";
		name="";
		author="";
		publisher="";
		price="";
		type="";
	}
	
	public BookInf(String id,String name,String author,
				   String publisher,String price,String type){
		this.id=id;
		this.name=name;
		this.author=author;
		this.publisher=publisher;
		this.price=price;
		this.type=type;
    }
    
    public String getId(){
    	return id;
    }
    
    public void setId(String id){
    	this.id=id;
    }
    
    public String getName(){
    	return name;
    }
    
    public void setName(String name){
    	this.name=name;
    }
    
    public String getAuthor(){
    	return author;
    }
    
    public void setAuthor(String author){
    	this.author=author;
    }
    
    public String getPublisher(){
    	return publisher;
    }
    
    public void setPublisher(String publisher){
    	this.publisher=publisher;
    }
    
    public String getPrice(){
    	return price;
    }
    
    public void setPrice(String price){
    	this.price=price;
    }
    
    public String getType(){
    	return type;
    }
    
    public void setType(String type){
    	this.type=type;
    }
}

⌨️ 快捷键说明

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