fix: Ergänze weitere Demo-Ausgabe. #1

Open
hummel wants to merge 1 commits from fixMehrDemo into main
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ public class Main {
System.out.println(); System.out.println();
System.out.printf("Die Summe von %d + % d = %d", 3, 8, m.add(3, 8)); System.out.printf("Die Summe von %d + % d = %d", 3, 8, m.add(3, 8));
System.out.printf("Es geht noch besser: %d + %d + %d = %d", 2, 5, 9, m.add(2, 5, 9)); System.out.printf("Es geht noch besser: %d + %d + %d = %d", 2, 5, 9, m.add(2, 5, 9));
int[] arr = {1, 2, 3, 4};
System.out.printf("Da geht noch mehr: %d + %d + %d = %d", arr, m.add(arr));
} }
public int add(int... numbers) { public int add(int... numbers) {