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 0000000..ebd393c
Binary files /dev/null and b/ArrayManipulation.class differ
diff --git a/ArrayManipulation.java b/ArrayManipulation.java
index 0e4f22d..d87f55e 100644
--- a/ArrayManipulation.java
+++ b/ArrayManipulation.java
@@ -11,6 +11,7 @@ public class ArrayManipulation {
arr[arr.length - 1 - i] = tmp;
}
return arr;
+
}
public static int[] removeFirst(int[] arr) {
@@ -26,11 +27,22 @@ public class ArrayManipulation {
}
+ public static int [] removeLast(int[] arr) {
+ int [] result = new int [arr.length-1];
+
+ for (int i =0; i