package de.university.neueVersion.letzte;

import de.university.neueVersion.exceptions.KarteAus;
import de.university.neueVersion.exceptions.KarteIn;
import de.university.neueVersion.exceptions.NichtGenugGeld;
import de.university.neueVersion.exceptions.PinFalsch;

public class Main {

	public static void main(String[] args) throws PinFalsch, KarteAus, NichtGenugGeld, KarteIn {
		
		CashMachine cashMachine = new CashMachine();
		
		CashCard cashCard1 = new CashCard(12345678);
		cashMachine.insertCashCard(cashCard1);
		cashMachine.pinEingeben(1234);
		cashMachine.withdraw(125);
		cashMachine.accountStatement();
		cashMachine.ejectCashCard();
		
		/**
		 * Bitte ausklammen, um Die Exception zu kriegen.
		 * 
		 * CashCard cashCard2 = new CashCard(23456789);
		 * cashMachine.ejectCashCard();
		 * cashMachine.insertCashCard(cashCard2);
		 * cashMachine.withdraw(125);
		 * cashMachine.insertCashCard(cashCard);
		 * cashMachine.pinEingeben(2345);
		 * cashMachine.accountStatement();
		 * cashMachine.withdraw(100);
        */
	}

}

@@ -730,23 +730,69 @@
 .%0D%0A%09%09 * 
-%0D%0A%09%09 * 
+ctrl+shift+c (fur ana-odnovremenno)%0D%0A%09%09 */%0D%0A%09%09 %0D%0A//%09%09
 CashCard
@@ -825,29 +825,28 @@
 23456789);%0D%0A
+//
 %09%09
- * 
 cashMachine.
@@ -859,29 +859,28 @@
 ashCard();%0D%0A
+//
 %09%09
- * 
 cashMachine.
@@ -903,29 +903,28 @@
 ashCard2);%0D%0A
+//
 %09%09
- * 
 cashMachine.
@@ -935,29 +935,28 @@
 draw(125);%0D%0A
+//
 %09%09
- * 
 cashMachine.
@@ -978,25 +978,29 @@
 cashCard
+2
 );%0D%0A
-%09%09 * 
+//%0D%0A//%09%09
 cashMach
@@ -1019,29 +1019,28 @@
 ben(2345);%0D%0A
+//
 %09%09
- * 
 cashMachine.
@@ -1060,21 +1060,20 @@
 ent();%0D%0A
+//
 %09%09
- * 
 cashMach
@@ -1100,18 +1100,16 @@
         
-*/
 %0D%0A%09%7D%0D%0A%0D%0A

Update Main.java