/** * */ package de.fhswf.in.inf.java1.aufgabe05; import java.math.BigDecimal; /** * Package for main function. * * @author $Author: $ * @version $Revision: $, $Date: $ UTC */ public final class Bank { /** * Prevents instantiation of the unity class Bank. * */ private Bank() { } /** * Main function for testing the Bank system. * * @param args * Shell arguments */ public static void main(String[] args) { Person dieter = new Person("Dieter", "Hallowegers"); Konto giro = new Konto(dieter, new BigDecimal(100)); try { giro.einzahlen(new BigDecimal(100)); giro.abheben(new BigDecimal(200)); System.out.println(giro.getKontostand()); giro.abheben(new BigDecimal(1)); } catch (IllegalArgumentException e) { System.out.println(e); } } }