?? carexception.java
字號:
public class CarException extends Exception
{
private boolean engineRunning = true;
private boolean gas = true;
private boolean oil = true;
public CarException()
{
super();
}
public CarException( String message )
{
super( message );
}
public void setEngineRunning( boolean engineRunning ) {
this.engineRunning = engineRunning;
}
public boolean isEngineRunning() {
return this.engineRunning;
}
public void setGas( boolean gas ) {
this.gas = gas;
}
public boolean hasGas() {
return this.gas;
}
public void setOil( boolean oil ) {
this.oil = oil;
}
public boolean hasOil() {
return this.oil;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -