mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-08 18:15:51 +00:00
Just formatting App classes to be like the other class files on the project
This commit is contained in:
1 parent
52f0923df9
commit
bde5b343d0
24 files changed
+466
-508
No files matched your search
@@ -1,24 +1,22 @@
|
||||
package com.iluwatar;
|
||||
|
||||
/**
|
||||
*
|
||||
* In State pattern the object (Mammoth) has internal
|
||||
* state object (State) that defines the current
|
||||
* behavior. The state object can be changed
|
||||
* to alter the behavior.
|
||||
*
|
||||
* In State pattern the object (Mammoth) has internal state object (State) that
|
||||
* defines the current behavior. The state object can be changed to alter the
|
||||
* behavior.
|
||||
*
|
||||
*/
|
||||
public class App
|
||||
{
|
||||
public static void main( String[] args )
|
||||
{
|
||||
public class App {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Mammoth mammoth = new Mammoth();
|
||||
mammoth.observe();
|
||||
mammoth.timePasses();
|
||||
mammoth.observe();
|
||||
mammoth.timePasses();
|
||||
mammoth.observe();
|
||||
|
||||
Mammoth mammoth = new Mammoth();
|
||||
mammoth.observe();
|
||||
mammoth.timePasses();
|
||||
mammoth.observe();
|
||||
mammoth.timePasses();
|
||||
mammoth.observe();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user