Write a LightSwitch class that starts off. flip changes it between on and off, and isOn returns whether it is currently on.
class LightSwitch { LightSwitch(); void flip(); boolean isOn(); }
Examples
There are also 2 hidden tests you can't see. Solve the problem, not the examples.