Design Pattern: Command Pattern in Java
Command pattern is used to encapsulate/wrap a command in an object so that the object can be sent as a parameter and can be used in other places. This article demonstrates Command pattern implementations in Java. Check the following examples.