void applyBrakes() { if (isMoving) { currentSpeed--; } else { System.err.println("The bicycle has already stopped!"); } }
Provides a secondary path of execution when an "if" clause evaluates to false.
Clickable & Draggable!