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