Fargus811 / Competition

0 stars 0 forks source link

Main class #25

Closed VladOsipov closed 4 years ago

VladOsipov commented 4 years ago

Please think what's wrong with this code block

Scanner scanner = new Scanner(System.in);
...
if ("exit".equals(scanner)) {
          currentCommand = new ExitCommand();
 }
Fargus811 commented 4 years ago

Done.