?? book.java
字號:
/** A class representing a book. It has instance variables
title, author, and isbn number, and a toString method. */
package library;
public class Book
{
/** Attributes 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);
}
/** A string representation of the book.
Analysis: Time = O(1) */
public String toString()
{
return "\n Title: " + title + ", Author: " + author + ", Isbn: " + isbn + "\n";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -