public ConsoleMoneyDialog() {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        while (money == null) {
            String amount = " ";
            while (!(isDouble(amount))) {
                try {
                    System.out.println("Insert amount:");
                    amount = reader.readLine();
                }
                catch (IOException ex) {
                    Logger.getLogger(ConsoleMoneyDialog.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
                      
            money = new Money(Double.valueOf(amount), new ConsoleCurrencyDialog().getCurrency());
        }
    }