📄 book.java.txt
字号:
import java.util.*;
public class Book{
String title;
String author;
String publisher;
String isbn;
Vector prices;
Book(){
prices = new Vector();
}
void setTitle(String title){
this.title = title;
}
void setIsbn(String isbn){
this.isbn = isbn;
}
void setAuthor(String author){
this.author = author;
}
void setPublisher(String publisher){
this.publisher = publisher;
}
void addPricePair(Pair _pricePair) {
prices.addElement(_pricePair);
}
String getTitle(){
return title;
}
String getIsbn(){
return isbn;
}
String getAuthor(){
return author;
}
String getPublisher(){
return publisher;
}
Vector getPrices(){
return prices;
}
Pair getPricePair(int index){
return (Pair) prices.elementAt(index);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -