diff --git a/Week8/Assignment8/bin/partB/Replace.class b/Week8/Assignment8/bin/partB/Replace.class index 4e472d0..dcc4091 100644 Binary files a/Week8/Assignment8/bin/partB/Replace.class and b/Week8/Assignment8/bin/partB/Replace.class differ diff --git a/Week8/Assignment8/src/partB/Replace.java b/Week8/Assignment8/src/partB/Replace.java index 0a4087d..abfdf11 100644 --- a/Week8/Assignment8/src/partB/Replace.java +++ b/Week8/Assignment8/src/partB/Replace.java @@ -1,7 +1,6 @@ //This code is written by Siwat Sirichai package partB; public class Replace { - public static int[] replace(int[] a, int v, int v2) { if (a==null)return a; //If a is a null pointer, return immediately to prevent a NullPointerException for(int i = 0; i < a.length;i++) //loop from 0 to the length of array a, number of completed iteration is stored in i (type int)