업데이트 'AccountArray.java'

Status
poopki 3 years ago
parent 4086ce4bb4
commit 8842db1df8
  1. 3
      AccountArray.java

@ -13,8 +13,7 @@ public class AccountArray {
Account m_Src = m_AccountArray.get(Src); Account m_Src = m_AccountArray.get(Src);
Account m_Des = m_AccountArray.get(Des); Account m_Des = m_AccountArray.get(Des);
if(m_Src.getBalance()-Amount>0){ if(m_Src.withdraw(Amount)){
m_Src.withdraw(Amount);
m_Des.credit(Amount); m_Des.credit(Amount);
} }
} }

Loading…
Cancel
Save