Package distrsys.rmi.bank.common

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


    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

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.