generated from hummel/Bank-System
14 lines
197 B
Java
14 lines
197 B
Java
|
package tpe.exceptions;
|
||
|
|
||
|
public class RobotIllegalStateException {
|
||
|
public boolean illegalState(boolean powerSwitch) {
|
||
|
if(powerSwitch=false)
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
else
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|