Are there other ways I can check if these are numbers or not in the depositCommand?
package com.codegym.task.task26.task2613;
import com.codegym.task.task26.task2613.command.CommandExecutor;
import java.util.Arrays;
import java.util.Locale;
public class CashMachine {
public static void main(String[] args) {
Locale.setDefault(Locale.ENGLISH);
Operation operation = null;
do {
operation = ConsoleHelper.requestOperation();
CommandExecutor.execute(operation);
}while (operation != Operation.EXIT);
}
}