?? book.java
字號(hào):
package myBook;
public class Book{
private int bookno=0;
private String bookname=null;
private String author=null;
private String publisher=null;
private float price=0.0f;
public Book(int no,String name,String author,String publisher,float price)
{
this.bookno=no;
this.bookname=name;
this.author=author;
this.publisher=publisher;
this.price=price;
}
public int getBookno()
{
return this.bookno;
}
public String getBookname()
{
return this.bookname;
}
public String getAuthor()
{
return this.author;
}
public String getPublisher()
{
return this.publisher;
}
public float getPrice()
{
return this.price;
}
public boolean equals(Book b)
{
if(this.bookno==b.getBookno())
{
return true;
}else{
return false;
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -