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

📄 book.java.txt

📁 基于J2ME的小型移动电子商务系统,基于J2ME平台的终端的应用程序开发
💻 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 + -