Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gridview;
- public class Book implements Comparable<Book> {
- String symbol;
- String msgtype;
- String price;
- public int compareTo(Book bk){
- return symbol.compareTo(bk.symbol);
- }
- public Book(String sybl, String mtype, String price) {
- this.symbol = sybl;
- this.msgtype = mtype;
- this.price=price;
- }
- public String getTitle() {
- return symbol;
- }
- public void setTitle(String title) {
- this.symbol= title;
- }
- public String getAuthor() {
- return msgtype;
- }
- public void setAuthor(String author) {
- this.msgtype = author;
- }
- public String getPrice() {
- return price;
- }
- public void setPrice(String price) {
- this.price=price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement