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

📄 book.java

📁 《Ajax开发精要〉〉该书详细的介绍了关于Ajax和java相关的开发知识
💻 JAVA
字号:
package com.ajaxlab.ajax;
import java.util.*;

public class Book {
	private String title = "";//书名
	private String author = "";//作者
	private String publisher = "";//出版社
	private Collection chapteres = new ArrayList();//目录
	
	
	public Book() {
		
	}
	public Book(String title, String author, String publisher) {
		this.title = title;
		this.author = author;
		this.publisher = publisher;
	}
	public String getTitle() {
		return this.title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return this.author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getPublisher() {
		return this.publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	public Collection getChapteres() {
		return this.chapteres;
	}
	public void addChapter(Chapter chapter) {
		if(!chapteres.contains(chapter.getId()))
			chapteres.add(chapter);
	}
}

⌨️ 快捷键说明

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