📄 book.java
字号:
package booklibrary;
// For the abstract version of this class (p194), the class should be declared like so:
// public abstract class Book
public class Book
{
private String title;
public String getTitle()
{
return title;
}
public void setTitle(String newTitle)
{
this.title = newTitle;
}
/*
// Uncomment the method declaration below for the abstract version of the class (p194)
public abstract String getType();
*/
/*
// Uncomment this constructor for bookPage2.jsp (page 181)
public Book(String title)
{
this.title = title;
}
*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -