Examples of einzahlen()


Examples of distrsys.rmi.bank.common.Konto.einzahlen()

            if(konto == null)
              System.out.println(noSuchAccount);
            else
            {
              long amount2 = Long.parseLong(amount);
              konto.einzahlen(amount2);
            }
          }
          catch(NumberFormatException e)
          {
            System.out.println(wrongNumberFormat);
View Full Code Here

Examples of distrsys.rmi.bank.common.Konto.einzahlen()

    long balance = 1000;
    float interest = 3.3f;
    String accountNumber = "123";
    bank.erzeuge_spar_konto(accountNumber, interest);
    Konto konto = bank.finde(accountNumber);
    konto.einzahlen(balance);
    assertEquals(balance, konto.kontostand());
    bank.verzinsen();
    balance += (long)(balance*interest)/100;
    assertEquals(balance, konto.kontostand());
    bank.verzinsen();
View Full Code Here

Examples of distrsys.rmi.bank.common.SparKonto.einzahlen()

      if(entry.getValue() instanceof SparKontoImpl)
      {
        long iterest;
        SparKonto sparKonto = (SparKonto)entry.getValue();
        iterest = (long)(sparKonto.get_zins_satz() * sparKonto.kontostand())/100;
        sparKonto.einzahlen(iterest);
      }
    }
  }
 
  public Vector getAccounts()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.