mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-11-22 14:13:44 +00:00
Update 设计模式 - 状态.md
示例输出的语法校对。
This commit is contained in:
+2
-2
@@ -87,7 +87,7 @@ public class NoQuarterState implements State {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void ejectQuarter() {
|
public void ejectQuarter() {
|
||||||
System.out.println("You haven't insert a quarter");
|
System.out.println("You haven't inserted a quarter");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -285,7 +285,7 @@ A gumball comes rolling out the slot...
|
|||||||
You insert a quarter
|
You insert a quarter
|
||||||
You turned...
|
You turned...
|
||||||
A gumball comes rolling out the slot...
|
A gumball comes rolling out the slot...
|
||||||
You haven't insert a quarter
|
You haven't inserted a quarter
|
||||||
You insert a quarter
|
You insert a quarter
|
||||||
You can't insert another quarter
|
You can't insert another quarter
|
||||||
You turned...
|
You turned...
|
||||||
|
|||||||
Reference in New Issue
Block a user