From f8217e0e7638c671d80e6d83606d6f93bc149aa9 Mon Sep 17 00:00:00 2001 From: Katrice Williams-Dredden Date: Wed, 21 Feb 2018 16:16:47 -0500 Subject: [PATCH 1/2] started --- .idea/misc.xml | 4 ++-- PlaylistChallenge.iml | 1 - src/main/java/io/zipcoder/Music.java | 14 +++++++++++++- target/classes/io/zipcoder/Music.class | Bin 0 -> 570 bytes target/test-classes/io/zipcoder/MusicTest.class | Bin 0 -> 1381 bytes 5 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 target/classes/io/zipcoder/Music.class create mode 100644 target/test-classes/io/zipcoder/MusicTest.class diff --git a/.idea/misc.xml b/.idea/misc.xml index e8942bd..b2526f7 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -7,7 +7,7 @@ - - + + \ No newline at end of file diff --git a/PlaylistChallenge.iml b/PlaylistChallenge.iml index 54ddd53..0ddf51c 100644 --- a/PlaylistChallenge.iml +++ b/PlaylistChallenge.iml @@ -5,7 +5,6 @@ - diff --git a/src/main/java/io/zipcoder/Music.java b/src/main/java/io/zipcoder/Music.java index 180c65c..035d97b 100644 --- a/src/main/java/io/zipcoder/Music.java +++ b/src/main/java/io/zipcoder/Music.java @@ -4,11 +4,23 @@ public class Music { private String[] playList; + //String[] n=songs | Integer k=index of the song | String q= the name of the song you wish to switch to + public Music(String[] playList){ - this.playList = playList; + + //this.playList = playList; + Integer playListMoves = 0; + + for(Integer k =1; ktm(6wt~T}6%m9&A?l*ijjJ>r>Xew2WGd=c=|Th-et;h( z-lVk+CtlozQdrfg8yrULFQ9>@lz-|$1$P;RRCMQ%^9j=EHUV)Hnwgx!hTkCv# zf|iik)7UpqU~6*J;5XSB(0oukGajUq}MF)vjmRx6{j n&^+fqVQTb}SjK=m6Wda%u|KaaH8fOFOY0h|)S1C2OPQNL1N?RQ literal 0 HcmV?d00001 diff --git a/target/test-classes/io/zipcoder/MusicTest.class b/target/test-classes/io/zipcoder/MusicTest.class new file mode 100644 index 0000000000000000000000000000000000000000..3a5845d28504d1de96f858cf44e777177bdaa963 GIT binary patch literal 1381 zcmcIjSx*yD6#j-zJ3}c21_3LJiVKvjf_p&}j7E|wi6tbBPnYSnTpVU_7F_<7FG@7} zu4d1>$qX#rj1)RZdNAPeu9iS+ct&!ws?JG2>JM zS9qHuRQldbn(?-Z3=CCNPZ%sRnjg!C3|ZBA%&K*_ zDvn8P`F4-8WS#zn8z;guP1?v~n8ktps7Cw3BdBrBj_P7|2$G zBy{CtrKgoY9>Sca&!GiZ)S>{xQHHpPWqPu&A{QapSKcEgJ*i` z6O0cGI&g;1%waNv0miwb0t{k^Hv?zc+;Q0a9VS0PVAcAHj#|n|RcoeWR%>Y|U9DxD zOtta_R&Dwd?5E}dI-fb2vYBR3PS4C1%#X;HGlg^^bAYZE^EhlGcA-Gtadcw>c}!FM zJmr@ue1+^<)srLUrm6yp>^Mhtfj?w8Q zqG`XEc^bI#S9dw>u3NjyYj^oJcd0{n`Ld~P{@dLUwVow=ff~DFXli literal 0 HcmV?d00001 From 1ef5ee71387e2c09fe21871ef9fd4c6db7886f80 Mon Sep 17 00:00:00 2001 From: Katrice Williams-Dredden Date: Wed, 21 Feb 2018 22:11:30 -0500 Subject: [PATCH 2/2] ..not done, just update --- src/main/java/io/zipcoder/Music.java | 65 ++++++++++++++++++++++--- target/classes/io/zipcoder/Music.class | Bin 570 -> 1445 bytes 2 files changed, 57 insertions(+), 8 deletions(-) diff --git a/src/main/java/io/zipcoder/Music.java b/src/main/java/io/zipcoder/Music.java index 035d97b..b86b734 100644 --- a/src/main/java/io/zipcoder/Music.java +++ b/src/main/java/io/zipcoder/Music.java @@ -4,23 +4,72 @@ public class Music { private String[] playList; + //String[] n=songs | Integer k=index of the song | String q= the name of the song you wish to switch to + //identify the Occurences + //get the length going forward + //get the length going backwards public Music(String[] playList){ - //this.playList = playList; - Integer playListMoves = 0; - for(Integer k =1; kl3!a1l`znGmLs4dFVbA1|f3UUesJd%ey zANOGl&<@gDVBEtsnED2hN`HmtGd&N6Xb0e>4MU+9z%U~8Vx4SyBlLLBR^^-E6rzsi zL*A1&)l_okP=d8w3Ffrsf?et&s9pD;SC|1Oe@R$MPKFG_U=O|roODS`M|b{w%5)LN;Aa_=?BWy=vY6#e+~+@@=k5h#P29BcZZKm6C7dOcA`5px z+c@WdwjEF(Oq^%TOIVJSgZ$G$Zv6*&el}f R#R!?-D{IC~2qr!`{Q{vw5MuxU