diff --git a/Week8/Assignment8/bin/partB/Replace.class b/Week8/Assignment8/bin/partB/Replace.class index 738c791..4e472d0 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 06d3491..6e779fa 100644 --- a/Week8/Assignment8/src/partB/Replace.java +++ b/Week8/Assignment8/src/partB/Replace.java @@ -12,7 +12,7 @@ public class Replace { public static void printArray(int[] a) { if(a==null) { - System.out.println(); //Create a newline to make the format looks uniform + System.out.println("null"); //Print the string null return; //If a is a null pointer, return immediately to prevent a NullPointerException } //NOTE: return; (a return statement without a return value) in a method with no return type will break out of the method.