public void mainMenu() {
        System.out.println("");
        int choose;
        do {
            System.out.println("1.开户 \n2.存款 \n3.取款  \n4.余额查询 \n5.修改密码 \n6.转账 \n0.退出");
            if (in.hasNextInt()) {
                choose = in.nextInt();
                switch (choose) {
                    case 1:
                        ATMFunction.startRegister(atmCore);
                        break;
                    case 2:
                        ATMFunction.startSaveMoney(atmCore);
                        break;
                    case 3:
                        ATMFunction.startGetMoney(atmCore);
                        break;
                    case 4:
                        ATMFunction.startCheckMoney(atmCore);
                        break;
                    case 5:
                        ATMFunction.startResetPassword(atmCore);
                        break;
                    case 6:
                        ATMFunction.startMoveMoney(atmCore);
                        break;
                    case 0:
                        System.exit(0);
                        break;
                }
            }
        } while (true);
    }