boolean withdraw(double get){
if(get<=balance)
{
System.out.println("取钱"+get+"元,当余额为"+balance+"元");
return true;
}
else
{
System.out.println("'余额不足");
return false;
}
boolean withdraw(double get){
if(get<=balance)
{
System.out.println("取钱"+get+"元,当余额为"+balance+"元");
return true;
}
else
{
System.out.println("'余额不足");
return false;
}
转载于:https://www.cnblogs.com/zs6666/p/5890613.html