| 25 | // A different subclass for each state: |
| 26 | |
| 27 | class Wash implements State { |
| 28 | @Override public void run() { |
| 29 | System.out.println("Washing"); |
| 30 | new Nap(0.5); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | class Spin implements State { |
| 35 | @Override public void run() { |
nothing calls this directly
no outgoing calls
no test coverage detected