From ada52c4c6509bce79bef280e3d0c11c002afc1c4 Mon Sep 17 00:00:00 2001 From: hummel Date: Fri, 14 Jun 2024 13:18:07 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Erg=C3=A4nze=20weitere=20Demo-Ausgabe.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/de/hs_mannheim/informatik/gitdemo/Main.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GitBestPractices/src/de/hs_mannheim/informatik/gitdemo/Main.java b/GitBestPractices/src/de/hs_mannheim/informatik/gitdemo/Main.java index 130ea53..8acfc24 100644 --- a/GitBestPractices/src/de/hs_mannheim/informatik/gitdemo/Main.java +++ b/GitBestPractices/src/de/hs_mannheim/informatik/gitdemo/Main.java @@ -10,6 +10,9 @@ public class Main { System.out.println(); 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)); + + 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) {