Code example for BigDecimal

Methods: intValue

0
            if(Balance.intValue() < 0)
            { 
                throw new AccountOverdrawnException(); 
            } 
 
            if(amount.intValue()>=10000)
            { 
                Audit audit = new Audit(id, amount);
                auditLog.add(audit);
            } 
        } 
        public class AccountOverdrawnException extends Exception{}
    }