boolean withdraw(double get){ if(get<=balance) { System.out.println("取钱"+get+"元,当余额为"+balance+"元"); return true; } else { System.out.println("‘余额不足"); return false; }
时间: 2024-08-06 16:04:33
boolean withdraw(double get){ if(get<=balance) { System.out.println("取钱"+get+"元,当余额为"+balance+"元"); return true; } else { System.out.println("‘余额不足"); return false; }