From 9fcfbcbd707fc9d5b6123a4edb2a3a162866ef45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20Br=C3=B6cher?= Date: Tue, 19 Apr 2022 18:53:16 +0200 Subject: [PATCH] =?UTF-8?q?Methode=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ArrayManipulation.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ArrayManipulation.java b/ArrayManipulation.java index 4813c14..6df851b 100644 --- a/ArrayManipulation.java +++ b/ArrayManipulation.java @@ -11,6 +11,15 @@ return arr; } + public static int[] squareEach(int[] arr) + { + int[] neu = new int[arr.length]; + for(int i=0; i