From 10a3a6fb3a8525e334b7b56d5af1d19cad06eb58 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 22 Oct 2020 16:40:44 +0700 Subject: [PATCH] change newline to null then newline --- Week8/Assignment8/bin/partB/Replace.class | Bin 2170 -> 2172 bytes Week8/Assignment8/src/partB/Replace.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Week8/Assignment8/bin/partB/Replace.class b/Week8/Assignment8/bin/partB/Replace.class index 738c79127b00f64ed86dd483c2083ee41135dfbe..4e472d096292538710e40ac9c44d64a970e273ab 100644 GIT binary patch delta 667 zcmZXQ(NEJ*7{$-++TA)!=r&*wNW4R;vW*Q96bFh91W_R*)0l;)x;1mAsiY2#iN-(T z{sa2Nt7tO!q7V9D{Fe-geiu3kk~HZ#r{DLx=k~XKV1IPjpb5dC2fMzXz&Iv2&NHNC zlBN4CIJm&TcfwZC_5=Aw8_t`!MAJ^gd67U41&%yJ@|pY6E%|QHEUgD^ujz#rrcjh` znKLxaz!D~A=v7esSqpQxD!XhWbDhCH-mJFilqSc59Mk6KmKai7>R8Hz8;0&{;g*F0 z+_q3rt&GD~2{5c!$Y9vSs{Ej3T6d}af16Kc%EH9G)5yBYADqq`D&J%n+kE~?)Lq|K zEkbX{ck7;L1;TUdPqUx%u~n_|3nnxGE4iPrK4Bzvu7m7;Y;g}o=qs1;J zt2KQz_f2oShnXtv!AM=Mc5p@R8{(Y>8+}M)83Q;=xS=B`rAc!An8hG{Wt0O8F!~Ol zvp*2fIIhvZ;27ta=P1)dIg9f6iTrTl3>I;N1~{NiLPs26ySChlf3Mu^;8wniW!3u* z=|ZH}NKZw2o%DzvnfuBZk=dYo%ZGe=DXaGBV*gl=NcUKeN%vSawccZGE2CKQ2mkUH DD^`s! delta 683 zcmZWlO-~b16g{^y(>G2>owmwH&^V~WM_XD%R4fRzD2iG%X^=F!8EDgJnrg;Itu$M;dM&V#LRx+xuWy1tmWdo+ z85MoS#uTo~11j}jCpdqdc(dM?1Wt_Nde1}%iQbXBYjFc<-Q0j+X z{RlIW*@ltGmfM(Ie^12nr=wpxoT9hTce9=>z~ 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.