From 421759516a8f8730dd1bfc8ab222ba1fa00ef52a Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Tue, 27 Oct 2020 12:10:49 +0700 Subject: [PATCH] - Upload a working version of ArrayUtility - Upload a decomplied CSVUtilityGiven --- Week9/Assignment9/bin/ArrayUtility.class | Bin 0 -> 1702 bytes Week9/Assignment9/bin/ArrayUtilityTest.class | Bin 0 -> 2010 bytes Week9/Assignment9/bin/CSVUtility.class | Bin 0 -> 1180 bytes Week9/Assignment9/bin/CSVUtilityGiven.class | Bin 0 -> 1755 bytes Week9/Assignment9/bin/CSVUtilityTest.class | Bin 0 -> 1227 bytes Week9/Assignment9/bin/module-info.class | Bin 150 -> 0 bytes Week9/Assignment9/data.txt | 7 +++ Week9/Assignment9/golf-score-1.csv | 11 ++++ Week9/Assignment9/golf-score-2.csv | 25 ++++++++ Week9/Assignment9/src/ArrayUtility.java | 59 +++++++++++++++++++ Week9/Assignment9/src/ArrayUtilityTest.java | 49 +++++++++++++++ Week9/Assignment9/src/CSVUtility.java | 42 +++++++++++++ Week9/Assignment9/src/CSVUtilityGiven.java | 51 ++++++++++++++++ Week9/Assignment9/src/CSVUtilityTest.java | 31 ++++++++++ Week9/Assignment9/src/Java101Viewer.class | Bin 0 -> 921 bytes Week9/Assignment9/src/module-info.java | 2 - 16 files changed, 275 insertions(+), 2 deletions(-) create mode 100644 Week9/Assignment9/bin/ArrayUtility.class create mode 100644 Week9/Assignment9/bin/ArrayUtilityTest.class create mode 100644 Week9/Assignment9/bin/CSVUtility.class create mode 100644 Week9/Assignment9/bin/CSVUtilityGiven.class create mode 100644 Week9/Assignment9/bin/CSVUtilityTest.class delete mode 100644 Week9/Assignment9/bin/module-info.class create mode 100644 Week9/Assignment9/data.txt create mode 100644 Week9/Assignment9/golf-score-1.csv create mode 100644 Week9/Assignment9/golf-score-2.csv create mode 100644 Week9/Assignment9/src/ArrayUtility.java create mode 100644 Week9/Assignment9/src/ArrayUtilityTest.java create mode 100644 Week9/Assignment9/src/CSVUtility.java create mode 100644 Week9/Assignment9/src/CSVUtilityGiven.java create mode 100644 Week9/Assignment9/src/CSVUtilityTest.java create mode 100644 Week9/Assignment9/src/Java101Viewer.class delete mode 100644 Week9/Assignment9/src/module-info.java diff --git a/Week9/Assignment9/bin/ArrayUtility.class b/Week9/Assignment9/bin/ArrayUtility.class new file mode 100644 index 0000000000000000000000000000000000000000..67fde9fc96ef5a88d3f60dd3dd62ef350a518e38 GIT binary patch literal 1702 zcma)5O-~zF6g_V~n0PQ?Fg6W?+mH`pn-8akLTWp-Y1%4CrbMMhs=P=BGlHSUM)o)j zd;UZhU9e)CcF{&vwd5-pr+)jmS;mp zBnlIK0z+lL?tRkU+w_{BxtldlV5Hory0s0r>C5{`&IxLwB91GoC+ zs=Ke6TNt*GWUJObg$i6qS60|c^{SJS3J2bcvPNsC@s&U_T`9k`V?Aj4_3dJ2BZ4cq zX5s1?v(^t62VD4;FB)t<mY^{hUw7=<`Kst-&c`PH18@( zYeWn)M`L`12>u}X9Ob{p>;+g}>_qS7CBvpq=YQ0Q`SNL}o_i#;VUkJNXdy*{318-7^ zASQ>mC_p1_TItkzhB^(UGmgIgf#(>M3Z=BzGZu_czFZhN<9C@%+35ccm$Ofh{vLBL z*Tm*Wa2htUibuFA{q*@A#$}nslQIv9ln$k`UlfeavRs#;i^fF0JpBYqa$!8#tO6=16;%R^Lz!Y}j6g|%#&x|K-YLX_DHcekhX>4cm{m~|ALPKdFAMLbtv1D06nxsQARcuH0 zgc3IFV9A07OSUX23$PHN?vU8PFG8F*cKp>y2utJl?z{J$d+vGny+8l?<#zzf$Qp8v15;_$BY*Npa7sJazYuJb}KQ^1geNb1S~G8;e?S=vS4mJMRiHi>_Z17)%v* zTKTg<#V;MKq;nPo-bkQNC5s1S`oOCkkb=Oa1O}R`*<)5hEVpvNJpJcD3G@`hQX8QS zs{wZv*9;5^B-#lkFpTR0v1%RMOcgda(}lvOg{v4z;BAaDWA(87f;y$Rp3cSb4#o`J z?9eiMS`EBn0x6`aWBG(U2kNEz<*7%kGhnrzTU;?QE--fgvtvr{JzKU4Gq#+y<(w_& zZMk5}#a(Nn`Li&ADFc(NHk7RsD}iau2pGo-{)qApq|Q^<#GF9t^^Ch#;hdBv76j5= z(F|1tIdn5LaZ6ym87@OW8{ z0-4uZ#g?~hdE1stww#&Xl@s!eo{0wncRS)6M;&fy+og8$V-wD>3uorqQOMV2GqdSA z+Y_*|<&(<3x8bWNV4(dHsn=yvbtp!7X`_6E0G%^FAN)6HO>q<)W0{{}zT_kVs}ZE; zJ)9@%0UR&TilY}78=IGCtIb9Y$r}1w+k3-Y8vj)$y$!~|Al?jNE;l)h&{jXu0#Nio zCMth~UmS1!cX)3z+)}Sooun9p7J|J@>c3j~sOIFgn3Ip`PF^>hykR`bg>&njDQ+4IU~(P#0C$~If}ZDl9hHY}@!Xe;23vLjt~vJG*K0WCG2 z;1V_HYaai%?Az}! zitlj)Kk%hIJK14;gS%J{)#gLr5N(Lfp>+S-_zmynqg~2nDWTGm`e~+<&BqL7QN_HL zrRKJ!(scUv4spCV;p(dc*SS^532hYuZ7ZQkQ!{^OX};; RdW9q&ai%WJW7-is`4{z|keUDh literal 0 HcmV?d00001 diff --git a/Week9/Assignment9/bin/CSVUtility.class b/Week9/Assignment9/bin/CSVUtility.class new file mode 100644 index 0000000000000000000000000000000000000000..102ee10c3a73fc2ca794afa5c82ae347b1206bad GIT binary patch literal 1180 zcmZ`%O-~b16g{^cm{JCTmhz#Xf&v{1)DJ950W~OzNv$TMCBSN!j_t!TL#9)Mdwzv$ z6Slg6M4~^yKVxFtBHlM`1Zmye_jT^M=bm@J|Nim~zycnt2oa(yM&Y$DD#CxSLLu~Q zoA1nY#dJ#P7hBu5s1ZcaGm>d>^)x^L+DHD%}q$AF%36xlc1K(YM$YN!y76l{`rQw z6A>f{G%eGnG^8-i+G|z&iCqyp!neKu*jF!nzU{1}nAMP$Dix`c#lB(R9CIi5x~4xM zgsK)H-hzvVgA+@BnYBG@@DxqoWOU1qBSGjgeA9aS+}sW3Ld85AAcug*f}ppseM8@D zN!DKGEZI42@JJYL&9m(KBz2#S*sN>^qhN1&>cNrZ)N)k$l;)LqZJRnmS16$je?0v;^NEXv1F2&y6Ns^( zILAIr@C>KWk1Pi85`!pVC}?A@E)chHoAEtZ#~s||24Yyl9PV*TDJ&y{dFC~k=RV&l zco1+aCm2u>C-npw6$=z)8?snzvLVBKA@jyd={k5S%B9^$O{DFr7{?Q+O CQ~T}! literal 0 HcmV?d00001 diff --git a/Week9/Assignment9/bin/CSVUtilityGiven.class b/Week9/Assignment9/bin/CSVUtilityGiven.class new file mode 100644 index 0000000000000000000000000000000000000000..49e9f9aaa8398413e8e5a5af1c67ef60a2150bca GIT binary patch literal 1755 zcmZuxT~`}b6y2B1WFQV-2~(h$Vl6ERBm_tc3I(AQT513_Z7Sf`Fd1QLI$>o7Y<=cW z=$lWx>I<-BmF2U4#I@8nU#+>#Id^{h_m>j@6Rs1K@n(sX6~AqlId<{RyLm5mM;*#>$r|TEf7j13j)eqxoAfaLX!>^VdCT* z*IwRvzF}7$n;RutAet*%W~pFS9J#L@D*l$^3AE=fq@5IKtk`C8!I7c;iQE~3ykBwL z&B^5YldRU-+_i0v(CuWr;H2rjA?aXX(vi@dBS}dnS`>5;Lh|0D}VBmgy}MHfUCGlh!dL zyQEsBvd6x~F|1<*qim$-e8=4E>Y|3*|7(4<@X~oq$2i`j*QQNSBe8g%XpI7)cFoGL z?0cX)n4Vhis&^wSN%ii0@!5G9NGis;%Qpq9U1u3vcK~E8X^TaH=DcrO-z=Hi!K`VR zVI|~DanuBob-K8gT(5%}fxtr@Eog1TBO<3F$Rej>39T%kx6P-*(>3<1UUXH>ovInr zu)@`I({Tl^B$4pNbRNS_#9sl z*xM?9E6|y!M?@ljCD5{2E`6Q$ta8Pc(0nm@rn2nnL+iNk42NXvaGm)>{6_!^SA5?5 zYTRXM1+6-8h{m6}Xh4MD2rZz~xfyQ-tH6mT&D=G~O46f^YYEpLK>a~jl_!N`#8!`C ztP-;G5La`@h_4=^cWEDbYVZK>9H8$hZQ_U1ziCpb17uzyyBr!*_7O`PO3F|UaOYQK z^LvUgl=R7ur+=k?B629;HWV;wWA=7*$tQ~r^wAEY6B(Y2<0__j`iS;1t_9w=tIY5| zf0AJ20w!^n%)2m6-)U+YM=w6W40B8{ZWi~bY>vJiP+p@)Lrg=w@in?M+!w8^06Tf9 z0)H|_7IkLe2oIKezK2FdN@zND5-+~O{Rt&BrpCv@`{?Xe3^iqhN27}e_%OexioLKf z)NX}RfA3b#wBBMS@UNoc1}ol2zBj3?pY2RgYZ9YePazd(d|1t0(?}N7xJ->I?G$$n zL>QsQd(_y)_*txwZx0ba;+e`y_2Of$!h!ByDF2|DYG=eLqR=#Ch19O$6Tw-CkyxJP xy*LE(JdvXki#`b*;pq`pqhHn*XVcXZjN&jMMhHE6Zo*<@Kf`bVlivnx{0HanWIX@? literal 0 HcmV?d00001 diff --git a/Week9/Assignment9/bin/CSVUtilityTest.class b/Week9/Assignment9/bin/CSVUtilityTest.class new file mode 100644 index 0000000000000000000000000000000000000000..608b8af0f39e08cf92562b5597c1c0fd1f486ae6 GIT binary patch literal 1227 zcma)5%}*0S9DO5&-PYy9*77L|e$k?|_=WPNA^{WApt0CQIBnYz7TaC2J4Hx5diChl zqel}xNaI1T;vZ#v1Jwdq6ZbGPznQo1_j_-C^Yho&Zvdt+Z{UPL$9%rlAFr$ z+`vFwU~nJhc-cj#B9}b1=+)fvUrZFI(QP1kL`!}rP_k;F2fftc)hH`@kc>1>m`O38 zw5!u5`URp3+nbaw%TqC&!C3=?0*OCK51}ob!;pZnsR=5SkW7UsFmYbMEZfS?sBIO) zMO-#;iN-aZc<5|N*TM)=M6!^wmL@O~#uwsJ45PSe;EI4X=lk|f<5n$)tC9 zS)M-kYW|QfgIYyV+cjOtbsF3(#KcX3)YyN1TFZom+qgp)blD^lNQYFtl3x8s-BY?s zc0o@n43RGAGAB&1|JqBeK9FPOVx|;qQJ3wnv7-_p#MG20xFipJOf&`RPS5DO#4y+j zd=9_~uGq>P4Mthcf^+NWF3eB+$1#rj82sTRN9zE%+Z=hH0CL-Ss|)KTV5g#g#=#niM~M+ oZ_$l+e3S3V@PV8k(T`mW;5%R44-6i%dJp$-pE(72^?g0~4f+KUoB#j- literal 0 HcmV?d00001 diff --git a/Week9/Assignment9/bin/module-info.class b/Week9/Assignment9/bin/module-info.class deleted file mode 100644 index d6ac9a10637de730337a098991bf3f6884d24e49..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 150 zcmX^0Z`VEs1_mnzE_MbcMh5QO{FKt1RNc(Hw0uSeuHgLAqU2P!%$!t41_2}~y{yEt zL`DWSU$AOn26muM$KvA5^t{~Eyb?=c22Mr>PLLYCq{QOX1_lO3pdApv#J~(>Ffp(& TumWi@1~#xTBLhbRm;oUGe8e5$ diff --git a/Week9/Assignment9/data.txt b/Week9/Assignment9/data.txt new file mode 100644 index 0000000..5ca2b25 --- /dev/null +++ b/Week9/Assignment9/data.txt @@ -0,0 +1,7 @@ +1st line +2nd line +3rd line +4th line +5th line +6th line +7th line \ No newline at end of file diff --git a/Week9/Assignment9/golf-score-1.csv b/Week9/Assignment9/golf-score-1.csv new file mode 100644 index 0000000..3d6a808 --- /dev/null +++ b/Week9/Assignment9/golf-score-1.csv @@ -0,0 +1,11 @@ +course-02 +Player01,4,4,6,3,4,5,4,6,6,6,3,5,4,6,4,4,3,6 +Player02,4,5,6,4,5,4,5,4,8,9,4,5,5,6,5,4,4,5 +Player03,4,5,5,4,6,5,5,5,7,6,3,6,4,6,5,5,4,5 +Player04,5,6,4,3,5,4,4,4,6,5,2,7,4,7,5,7,4,6 +Player05,4,3,4,4,4,5,4,4,5,5,4,5,5,5,5,4,5,4 +Player06,3,4,4,3,3,4,4,4,5,5,4,5,3,5,3,4,3,6 +Player07,6,4,6,4,5,5,5,3,6,4,4,5,4,5,5,5,3,4 +Player08,4,6,5,3,4,6,4,3,4,4,2,5,4,5,4,4,3,4 +Player09,5,5,8,4,5,4,4,3,5,5,4,5,3,6,6,5,4,5 +Player10,5,4,5,3,4,4,4,2,5,5,3,6,4,5,4,6,5,5 diff --git a/Week9/Assignment9/golf-score-2.csv b/Week9/Assignment9/golf-score-2.csv new file mode 100644 index 0000000..7837094 --- /dev/null +++ b/Week9/Assignment9/golf-score-2.csv @@ -0,0 +1,25 @@ +course-04 +Player01,4,4,6,3,4,5,4,6,6,6,3,5,4,6,4,4,3,6 +Player02,4,5,6,4,5,4,5,4,8,9,4,5,5,6,5,4,4,5 +Player03,4,5,5,4,6,5,5,5,7,6,3,6,4,6,5,5,4,5 +Player04,5,6,4,3,5,4,4,4,6,5,2,7,4,7,5,7,4,6 +Player05,4,3,4,4,4,5,4,4,5,5,4,5,5,5,5,4,5,4 +Player06,3,4,4,3,3,4,4,4,5,5,4,5,3,5,3,4,3,6 +Player07,6,4,6,4,5,5,5,3,6,4,4,5,4,5,5,5,3,4 +Player08,4,6,5,3,4,6,4,3,4,4,2,5,4,5,4,4,3,4 +Player09,5,5,8,4,5,4,4,3,5,5,4,5,3,6,6,5,4,5 +Player10,5,4,5,3,4,4,4,2,5,5,3,6,4,5,4,6,5,5 +Player11,4,6,5,3,5,4,4,3,5,4,2,4,4,5,5,6,3,4 +Player12,4,5,5,3,4,5,4,5,4,4,3,6,4,6,4,4,4,4 +Player13,6,6,6,3,5,4,6,4,5,5,3,5,3,6,5,4,4,6 +Player14,4,6,5,3,5,4,4,4,5,4,4,6,4,6,7,4,4,5 +Player15,5,4,5,4,6,6,4,3,5,5,4,5,4,5,5,4,4,5 +Player16,5,4,5,3,5,4,5,4,7,8,3,5,4,5,5,4,4,4 +Player17,6,4,5,3,5,6,4,3,5,4,3,5,5,9,5,3,3,4 +Player18,5,6,5,4,5,6,4,4,5,5,2,5,4,6,7,5,3,7 +Player19,4,4,6,4,4,6,4,3,6,7,3,5,4,5,4,4,4,5 +Player20,5,4,6,3,4,4,4,3,5,5,3,5,5,6,5,6,4,5 +Player21,4,4,7,2,4,5,4,3,5,6,3,7,4,5,4,4,5,4 +Player22,6,4,7,4,5,6,5,4,5,5,4,7,4,4,5,5,4,5 +Player23,5,4,7,3,5,5,6,4,5,6,3,5,4,6,4,4,3,6 +Player24,6,4,6,4,4,4,4,3,5,4,5,5,3,6,5,3,5,5 \ No newline at end of file diff --git a/Week9/Assignment9/src/ArrayUtility.java b/Week9/Assignment9/src/ArrayUtility.java new file mode 100644 index 0000000..5a4f7e6 --- /dev/null +++ b/Week9/Assignment9/src/ArrayUtility.java @@ -0,0 +1,59 @@ +import java.util.Arrays; + +public class ArrayUtility { + + /** + * combines a given 2D array into 1D array + * for example, + * { {1, 2}, {3, 4, 5} } -> {1, 2, 3, 4, 5} + * @param d + * @return 1D array of combine all elements from 2D array + */ + public static int[] merge(int[][] d) { + int length = 0; + for(int i = 0;i < d.length;i++)length+=d[i].length; + int[] merged_array = new int[length]; + int current_index = 0; + for(int i = 0;i < d.length;i++)for(int j = 0;j < d[i].length;j++) { + merged_array[current_index] = d[i][j]; + current_index++; + } + return merged_array; + } + + /** + * splits a given 1D array into 2D array with n equal parts + * if the given array cannot be split into n equal part + * this method should return 2D array of size 0,0 (new int[0][0]) + * @param d + * @param n number of parts for the target, 0 < n <= d.length + * @return 2D array + */ + public static int[][] split(int[] d, int n) { + if(n<=0) return new int[0][0]; //Return to prevent ArithmeticException: / by zero and negative array index + if (d.length%n!=0)return new int[0][0]; //Return, not array is not splittable + int[][] splitted_array = new int[n][d.length/n]; //Create the splitted_array array and initialize it + for(int i = 0;i < n;i++)for(int j = 0;j= 0\n----------"); + ArrayUtility.show(ArrayUtility.split(c, -1)); + System.out.println("Expected: n must be >= 0\n----------"); + ArrayUtility.show(ArrayUtility.split(c, 7)); + System.out.println("Expected: n cannot be greater than array's size, 6\n----------"); + } + + // do not modify this method + private static void testMerge() { + int[][] a = { { 1, 2, 3 }, { 4, 5 }, { 6, 7, 8, 9 }, { 10 } }; + ArrayUtility.show(ArrayUtility.merge(a)); + System.out.println("[1, 2, 3, 4, 5, 6, 7, 8, 9, 10] - Expected"); + int[][] b = { { 1, 2, 3, 4 }, { 4, 5, 6, 7 }, { 7, 8, 9, 10 }, { 10, 11, 12, 13 } }; + ArrayUtility.show(ArrayUtility.merge(b)); + System.out.println("[1, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 10, 10, 11, 12, 13] - Expected"); + } + +} diff --git a/Week9/Assignment9/src/CSVUtility.java b/Week9/Assignment9/src/CSVUtility.java new file mode 100644 index 0000000..ca2eac0 --- /dev/null +++ b/Week9/Assignment9/src/CSVUtility.java @@ -0,0 +1,42 @@ + +import java.io.File; +import java.io.FileNotFoundException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Scanner; + +public class CSVUtility { + + /** + * reads all lines in given filename into an array of String + * @param filename + * @return array of String, each element in array is each line in file + * @throws FileNotFoundException + */ + public static String[] readFile(String filename) throws FileNotFoundException { + // ENTER CODE HERE + Scanner sc = new Scanner(new File(filename)); + int length = 0; + for(length = 0;sc.hasNext();length++)sc.nextLine(); + String[] filedata = new String[length]; + sc = new Scanner(new File(filename)); + sc = new Scanner(new File(filename)).useDelimiter(","); + for(int i = 0;i<=length;i++)filedata[i]=sc.next(); + return filedata; + } + + /** + * read given CSV file into 2D array of String + * @param filename CSV file + * @param header true if CSV file has a header line. The first line is header. The data start from second line. + * @return + * @throws FileNotFoundException + */ + public static String[][] readCSV(String filename, boolean header) throws FileNotFoundException { + // ENTER CODE HERE + return null; + } + + + +} diff --git a/Week9/Assignment9/src/CSVUtilityGiven.java b/Week9/Assignment9/src/CSVUtilityGiven.java new file mode 100644 index 0000000..bea40be --- /dev/null +++ b/Week9/Assignment9/src/CSVUtilityGiven.java @@ -0,0 +1,51 @@ +// +// Source code recreated from a .class file by SNLinter +// (powered by FernFlower decompiler) +// + +import java.io.File; +import java.io.FileNotFoundException; +import java.util.ArrayList; +import java.util.Scanner; + +public class CSVUtilityGiven { + public CSVUtilityGiven() { + } + + public static String[] readFile(String var0) throws FileNotFoundException { + Scanner var1 = new Scanner(new File(var0)); + ArrayList var2 = new ArrayList(); + + while(var1.hasNext()) { + var2.add(var1.nextLine()); + } + + var1.close(); + String[] var3 = new String[var2.size()]; + + for(int var4 = 0; var4 < var3.length; ++var4) { + var3[var4] = (String)var2.get(var4); + } + + return var3; + } + + public static String[][] readCSV(String var0, boolean var1) throws FileNotFoundException { + String[] var2 = readFile(var0); + int var3 = var1 ? 1 : 0; + String[][] var4 = new String[var2.length - var3][]; + int var5 = 0; + + for(int var6 = var3; var5 < var4.length; ++var6) { + var4[var5] = var2[var6].split(","); + ++var5; + } + + return var4; + } + + public static void main(String[] var0) throws FileNotFoundException { + ArrayUtility.show(readCSV("course-db.csv", false)); + ArrayUtility.show(readCSV("golf-score.csv", false)); + } +} diff --git a/Week9/Assignment9/src/CSVUtilityTest.java b/Week9/Assignment9/src/CSVUtilityTest.java new file mode 100644 index 0000000..d092883 --- /dev/null +++ b/Week9/Assignment9/src/CSVUtilityTest.java @@ -0,0 +1,31 @@ +import java.io.FileNotFoundException; + +public class CSVUtilityTest { + public static void main(String[] args) throws FileNotFoundException { + System.out.println("Expected:"); + ArrayUtility.show(CSVUtilityGiven.readFile("data.txt")); + System.out.println("Your result:"); + ArrayUtility.show(CSVUtility.readFile("data.txt")); + System.out.println("----------------------------------------"); + System.out.println("Expected:"); + ArrayUtility.show(CSVUtilityGiven.readCSV("data.txt", false)); + System.out.println("Your result:"); + ArrayUtility.show(CSVUtility.readCSV("data.txt", false)); + System.out.println("----------------------------------------"); + System.out.println("Expected:"); + ArrayUtility.show(CSVUtilityGiven.readCSV("data.txt", true)); + System.out.println("Your result:"); + ArrayUtility.show(CSVUtility.readCSV("data.txt", true)); + System.out.println("----------------------------------------"); + System.out.println("Expected:"); + ArrayUtility.show(CSVUtilityGiven.readCSV("course-db.csv", false)); + System.out.println("Your result:"); + ArrayUtility.show(CSVUtility.readCSV("course-db.csv", false)); + System.out.println("----------------------------------------"); + System.out.println("Expected:"); + ArrayUtility.show(CSVUtilityGiven.readCSV("course-db.csv", true)); + System.out.println("Your result:"); + ArrayUtility.show(CSVUtility.readCSV("course-db.csv", true)); + } + +} diff --git a/Week9/Assignment9/src/Java101Viewer.class b/Week9/Assignment9/src/Java101Viewer.class new file mode 100644 index 0000000000000000000000000000000000000000..d180da7711e76b05e7c191ea00f6cfd40193cf3e GIT binary patch literal 921 zcmZ`%%WhIZ82$#%Fa_yFDk!DU3%0_kh&5i4*0AX}^{=G)R~<*S}+JFV4hjlo#!HZ6wnvh7&gz0SVn z?#TT%-6ZwU^@CHYejVy))sqMBD)LZ+3Csx03d}Kts@sZu(OyI7$5aCqI7eKPY(I#yfN7sI%R48!QK zUbC&fde(i@=UR)5)B?%-asxx zV%V!}4DKq@A+xT|Ug(I`j9)gJ4CaOIwQlFI>sXGrnjO$7i2s+Er9T~{=K%OYvEl}; zVLFxQ85s1PH}9W-nWym84dVppCLXKmwbX z!dUtG|EV$f*iK- z7%w&D_>l555h}_JZDr}Kko*BoB-&GQ!0ms^qdfTq>9`T)+F+DFBI+thp`9ZC#M#&L zU&^gdyIs_|y(S57D8nkoutSb_=~dN8!X65=Uq>AiG%*F=IZ_A+j0oHmh%kXk2K>eX KiM*vTqkjPff5C?U literal 0 HcmV?d00001 diff --git a/Week9/Assignment9/src/module-info.java b/Week9/Assignment9/src/module-info.java deleted file mode 100644 index 505265e..0000000 --- a/Week9/Assignment9/src/module-info.java +++ /dev/null @@ -1,2 +0,0 @@ -module Assignment9 { -} \ No newline at end of file