From 715d742afdbd5a6d0ef06009f97dc6af71f79cae Mon Sep 17 00:00:00 2001 From: lauraF Date: Thu, 21 Apr 2022 18:44:56 +0200 Subject: [PATCH] Neuer Aufrufparamenter --- ArrayManipulation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArrayManipulation.java b/ArrayManipulation.java index 08785ad..647e70e 100644 --- a/ArrayManipulation.java +++ b/ArrayManipulation.java @@ -3,7 +3,7 @@ import java.util.Arrays; public class ArrayManipulation { - public static int[] reverseArray(int[] arr) { + public static int[] reverseArray(int[] arr, String name) { for (int i = 0; i < arr.length/2; i++) { int tmp = arr[i]; @@ -16,7 +16,7 @@ public class ArrayManipulation { public static void main(String[] args) { int[] arr = {1,2,3,4,5}; - System.out.println(Arrays.toString(reverseArray(arr))); + System.out.println(Arrays.toString(reverseArray(arr, "Hannah"))); } public static int[] removeFirst(int[] arr) { -- 2.34.1