public void getBenjin() {
if (null != benjin.getText()) {
benjinD = Double.parseDouble(benjin.getText().toString());
}
}
public void getLilv() {
if (null != lilv.getText()) {
lilvD = Double.parseDouble(lilv.getText().toString());
};
}
public void getShijian() {
if (null != shijian.getText()) {
shijianI = Integer.parseInt((shijian.getText().toString()));
};
}
和
public void getNumber() {
if (null != benjin.getText()) {
benjinD = Double.parseDouble(benjin.getText().toString());
}
if (null != lilv.getText()) {
lilvD = Double.parseDouble(lilv.getText().toString());
};
if (null != shijian.getText()) {
shijianI = Integer.parseInt((shijian.getText().toString()));
};
}