package UE19_220425_Threads.nothread; public class Main { public static void main(String[] args) { Konto a = new Konto(); Konto b = new Konto(); Konto c = new Konto(); Ueberweiser ab = new Ueberweiser(a, b); Ueberweiser bc = new Ueberweiser(b, c); Ueberweiser ca = new Ueberweiser(c, a); // long start = System.currentTimeMillis(); ab.run(); bc.run(); ca.run(); // System.out.println(System.currentTimeMillis() - start + "ms"); System.out.println("A: " + a.getKontostand()); System.out.println("B: " + b.getKontostand()); System.out.println("C: " + c.getKontostand()); } } // 81ms