diff --git a/Assignment10/bin/RecursiveExercise.class b/Assignment10/bin/RecursiveExercise.class index 4731608..054c6ce 100644 Binary files a/Assignment10/bin/RecursiveExercise.class and b/Assignment10/bin/RecursiveExercise.class differ diff --git a/Assignment10/bin/RecursiveExerciseNoExtMethod.class b/Assignment10/bin/RecursiveExerciseSandwich.class similarity index 91% rename from Assignment10/bin/RecursiveExerciseNoExtMethod.class rename to Assignment10/bin/RecursiveExerciseSandwich.class index cb308ef..9a9e540 100644 Binary files a/Assignment10/bin/RecursiveExerciseNoExtMethod.class and b/Assignment10/bin/RecursiveExerciseSandwich.class differ diff --git a/Assignment10/src/RecursiveExercise.java b/Assignment10/src/RecursiveExercise.java index 90d1e91..3980031 100644 --- a/Assignment10/src/RecursiveExercise.java +++ b/Assignment10/src/RecursiveExercise.java @@ -25,6 +25,7 @@ public class RecursiveExercise { } // Remove the last element + public static int[] removeLast(int[] ia1, int[] ia2, int i) { ia2[i] = ia1[i]; if (i == ia2.length - 1) diff --git a/Assignment10/src/RecursiveExerciseNoExtMethod.java b/Assignment10/src/RecursiveExerciseSandwich.java similarity index 99% rename from Assignment10/src/RecursiveExerciseNoExtMethod.java rename to Assignment10/src/RecursiveExerciseSandwich.java index ef4ee91..0ae8a6f 100644 --- a/Assignment10/src/RecursiveExerciseNoExtMethod.java +++ b/Assignment10/src/RecursiveExerciseSandwich.java @@ -1,6 +1,6 @@ import java.util.Arrays; -public class RecursiveExerciseNoExtMethod { +public class RecursiveExerciseSandwich { // return an array that has all data of ht and n, // just like concatenating ht and n.