public void checkAndUpdate(){
        for (int i = 0; i < chequeList.size(); i++) {
            if(chequeList.get(i).chequeDateCheck(current)){
                
            }
            else{
                try {
                    newBankData.updateBankAmount(chequeList.get(i).getBankName(),newBankData.RetrieveBankAccountBalance(chequeList.get(i).getBankName())-chequeList.get(i).getChequeAmount());
                    newChequeData.deleteCheque(i);
                } catch (SQLException ex) {
                    Logger.getLogger(chequeTableUpdate.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }
    }