ygork / file-notes

0 stars 0 forks source link

Create a Factory class for crating commands and implement each command #7

Closed SeriyBg closed 7 years ago

SeriyBg commented 7 years ago

For now each command must print execution result to System.out::println Implementation of each command: create - 'Successfully created' delete - 'Successfully deleted' show - 'Show all notes' All the commands must implement interface Command with single method execute() Also for unknown command must exist class UnknownCommand that must print error message.

SeriyBg commented 7 years ago

https://habrahabr.ru/post/136766/