boolean withdraw(double get){ if(get<=balance) { System.out.println("取钱"+get+"元,当余额为"+balance+"元"); return true; } else { System.out.println("‘余额不足"); return false; }
时间: 2024-12-25 11:42:58
boolean withdraw(double get){ if(get<=balance) { System.out.println("取钱"+get+"元,当余额为"+balance+"元"); return true; } else { System.out.println("‘余额不足"); return false; }