We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4198141 commit da902a1Copy full SHA for da902a1
src/BehavioralPatterns/StateDP/Main.java
@@ -3,11 +3,8 @@
3
public class Main {
4
public static void main(String[] args){
5
Phone stateContext = new Phone();
6
- stateContext.alert();
7
+ stateContext.alert(); // -> "vibration..."
8
stateContext.setState(new Silent());
9
10
11
+ stateContext.alert(); // -> "silent..."
12
}
13
0 commit comments