Skip to content

Instantly share code, notes, and snippets.

View chr1gu's full-sized avatar
🧐

Christoph Ebert chr1gu

🧐
View GitHub Profile
private static void WechselGeldTest(Automat pAutomat) {
System.out.println("=== WechselGeld-Test. =====================================");
System.out.println(" WechselGeld moeglich: " + new WechselGeld(new ArrayList<>(Arrays.asList(10,2,5))).berechne(5));
System.out.println(" WechselGeld moeglich: " + new WechselGeld(new ArrayList<>(Arrays.asList(1,5,10,2,5,5,3,1))).berechne(30));
System.out.println(" WechselGeld moeglich: " + new WechselGeld(new ArrayList<>(Arrays.asList(5,5,3,1))).berechne(7));
System.out.println(" WechselGeld moeglich: " + new WechselGeld(new ArrayList<>(Arrays.asList(1,1,1,1,2,2,2,3,3,10,5))).berechne(22));
System.out.println(" WechselGeld moeglich: " + new WechselGeld(new ArrayList<>(Arrays.asList(1,1,1,1,1,1,5,2,2,2))).berechne(6));
System.out.println(" WechselGeld moeglich: " + new WechselGeld(new ArrayList<>(Arrays.asList(2,10,15,7))).berechne(33));
System.out.println(" WechselGeld moeglich: " + new WechselGeld(new ArrayList<>(Arrays.asList(