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

📄 book.java

📁 国外的数据结构与算法分析用书
💻 JAVA
字号:
package patronBook;

/**	A class representing a book.  It has an out routine, and attributes 
	title, author, and isbn number. */
public class Book
{
	/**	Fields of a book */
	protected String title, author, isbn;
	
	/**	Create a new book
		Analysis: Time = O(1) */
	public Book(String t, String a, String i)
	{
		title = new String(t);
		author = new String(a);
		isbn = new String(i);
	}
	
	/**	Returns a string representation of the book
		Analysis: Time = O(1) */
	public String toString()
	{
		String temp = new String();
		temp =  "title:  " + title + "\n";
		temp = temp + "author: " + author + "\n";
		temp = temp + "isbn:   " + isbn + "\n";
		return temp;
	}	
}

⌨️ 快捷键说明

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