Scubaroo
Contributor
public void diving(Diver newDiver) throws StrokeException{
if (newDiver.getType() == Diver.DIR) {
System.out.println("Doing It Right!");
} else if (newDiver.getType() == Diver.STROKE) {
throw new StrokeException("Can I have your gear when you die?");
} else if (newDiver.getType() != Diver.DIR && newDiver.getType() != Diver.STROKE{
System.out.println("I'm sick of this argument");
}
}
I hate my job...
if (newDiver.getType() == Diver.DIR) {
System.out.println("Doing It Right!");
} else if (newDiver.getType() == Diver.STROKE) {
throw new StrokeException("Can I have your gear when you die?");
} else if (newDiver.getType() != Diver.DIR && newDiver.getType() != Diver.STROKE{
System.out.println("I'm sick of this argument");
}
}
I hate my job...