From 583bf5b58b00297b1a025374aa60f34f4a939b2a Mon Sep 17 00:00:00 2001 From: Nico B Date: Thu, 21 Apr 2022 14:10:59 +0200 Subject: [PATCH 1/4] Initial commit --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto From c8db5eecc7bbbddd0423dea2c095e7582950b6a3 Mon Sep 17 00:00:00 2001 From: Nico B Date: Thu, 21 Apr 2022 14:40:33 +0200 Subject: [PATCH 2/4] removeLast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Methode remove hinzugefĆ¼gt --- .project | 11 +++++++++++ ArrayManipulation.class | Bin 0 -> 839 bytes ArrayManipulation.java | 22 ++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 .project create mode 100644 ArrayManipulation.class create mode 100644 ArrayManipulation.java diff --git a/.project b/.project new file mode 100644 index 0000000..259b75b --- /dev/null +++ b/.project @@ -0,0 +1,11 @@ + + + Prog2 + + + + + + + + diff --git a/ArrayManipulation.class b/ArrayManipulation.class new file mode 100644 index 0000000000000000000000000000000000000000..ebd393cc045a0d8eb9862f67f050ffed782d750f GIT binary patch literal 839 zcmZuvO>fgc5PfSqabldNZJN;53895T;z)@EM;auAgcK>oNI^wbPMc&^xj1&@IFWkq zFX@FVaDWO``2qX~egk*J*Q`@iq1K1lncbQ9-i+t#?=K4gZ8QuhP<3b~Qb;qb9`iYG z`8+skIfG*{j2Y7VUf{(~8Pr<+FpCVbIt&xHVE&ihJDJ8}Oj+TKii+I?$O~JqA}@%0 zaU}ToiGda5b*!3L!#cy-vnb*x2R!g5GoQy^7%-TTn2TsCk|!ds^*i-`$G`@PI!Y#P zWAh*FEcX0Xk~d|@#37M*!4X4A)-3sxMwa(Pz70!9*+d0*7z#HCWY8y4u1`XWwd)Y| zL)pPy6FXAA5s7g)7hOK3hPCJ6NHFBPULao1#sd+(<^!K@a=n-j-yZNu66<)tp!7Rb zFy-(y>DSPktJh{DWk7DXP%P=uFw4!9I|~aF48f z22^C_{K=Q8g344nZFS$W7b*V?JGRwq+m>xFw2?JxI+sq_Ic4nKpKtbi%2pD*Z9)WX zgh7ZaWVdK5b}6nQhx_!Bh4K>$`++@jX=ay{E~%B2RmpH+bk%lQdS}Qt%67TwoGQfg zy>Z1;B8?!;ItpYrXbB3`VkzM;q5P67xkoewqIpQ{%g){qjU3M7%!T2qn&WCI$4#Xj uH?2Fao^iS#p*PNvJ4fLYww6J48C;EQoj?E!n Date: Thu, 21 Apr 2022 14:43:17 +0200 Subject: [PATCH 3/4] hello System print hello --- ArrayManipulation.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ArrayManipulation.java b/ArrayManipulation.java index 22b6ed2..04d7f9b 100644 --- a/ArrayManipulation.java +++ b/ArrayManipulation.java @@ -12,11 +12,22 @@ public class ArrayManipulation { } return arr; + } + public static int [] removeLast(int[] arr) { + int [] result = new int [arr.length-1]; + + for (int i =0; i Date: Thu, 21 Apr 2022 15:12:13 +0200 Subject: [PATCH 4/4] Update ArrayManipulation.java --- ArrayManipulation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArrayManipulation.java b/ArrayManipulation.java index 04d7f9b..7039d25 100644 --- a/ArrayManipulation.java +++ b/ArrayManipulation.java @@ -27,7 +27,7 @@ public class ArrayManipulation { int[] arr = {1,2,3,4,5}; System.out.println(Arrays.toString(reverseArray(arr))); System.out.println(Arrays.toString(removeLast(arr))); - System.out.println("Hello"); + } }