?? animal.java
字號:
package torm.test.beans;
/*
* Created on 2006-10-18
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class Animal {
private int id;
private String name;
private double weight;
private String kind;
private boolean healthy;
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name
* The name to set.
*/
public void setName(String name) {
this.name = name;
}
/**
* @return Returns the weight.
*/
public double getWeight() {
return weight;
}
/**
* @param weight
* The weight to set.
*/
public void setWeight(double weight) {
this.weight = weight;
}
/**
* @return Returns the kind.
*/
public String getKind() {
return kind;
}
/**
* @param kind
* The kind to set.
*/
public void setKind(String kind) {
this.kind = kind;
}
/**
* @return Returns the ishealthy.
*/
public boolean getHealthy() {
return healthy;
}
/**
* @param ishealthy
* The ishealthy to set.
*/
public void setHealthy(boolean healthy) {
this.healthy = healthy;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -