Browse Source

updating arrays

Whitney Martinez 6 years ago
parent
commit
8575a59b99

+ 115
- 140
arraz/.idea/workspace.xml View File

@@ -2,14 +2,10 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="88ea8df4-5dbc-49b8-b3df-2eb51cffc0b3" name="Default Changelist" comment="">
5
-      <change afterPath="$PROJECT_DIR$/src/main/java/MinMax1.java" afterDir="false" />
6
-      <change afterPath="$PROJECT_DIR$/src/test/java/MinMaxTest.java" afterDir="false" />
7 5
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
8
-      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
9 6
       <change beforePath="$PROJECT_DIR$/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Arraz.java" afterDir="false" />
10
-      <change beforePath="$PROJECT_DIR$/src/main/java/MinMax.java" beforeDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/src/main/java/MinMax1.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/MinMax1.java" afterDir="false" />
11 8
       <change beforePath="$PROJECT_DIR$/src/main/java/MoreArrayc.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/MoreArrayc.java" afterDir="false" />
12
-      <change beforePath="$PROJECT_DIR$/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/ArrazTest.java" afterDir="false" />
13 9
       <change beforePath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" afterDir="false" />
14 10
     </list>
15 11
     <ignored path="$PROJECT_DIR$/target/" />
@@ -29,26 +25,26 @@
29 25
       </usages-collector>
30 26
       <usages-collector id="statistics.file.extensions.open">
31 27
         <counts>
32
-          <entry key="class" value="3" />
33
-          <entry key="java" value="43" />
28
+          <entry key="class" value="4" />
29
+          <entry key="java" value="50" />
34 30
           <entry key="md" value="2" />
35 31
         </counts>
36 32
       </usages-collector>
37 33
       <usages-collector id="statistics.file.types.open">
38 34
         <counts>
39
-          <entry key="CLASS" value="3" />
40
-          <entry key="JAVA" value="43" />
35
+          <entry key="CLASS" value="4" />
36
+          <entry key="JAVA" value="50" />
41 37
           <entry key="Markdown" value="2" />
42 38
         </counts>
43 39
       </usages-collector>
44 40
       <usages-collector id="statistics.file.extensions.edit">
45 41
         <counts>
46
-          <entry key="java" value="10714" />
42
+          <entry key="java" value="12122" />
47 43
         </counts>
48 44
       </usages-collector>
49 45
       <usages-collector id="statistics.file.types.edit">
50 46
         <counts>
51
-          <entry key="JAVA" value="10714" />
47
+          <entry key="JAVA" value="12122" />
52 48
         </counts>
53 49
       </usages-collector>
54 50
     </session>
@@ -58,45 +54,17 @@
58 54
       <file pinned="false" current-in-tab="false">
59 55
         <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
60 56
           <provider selected="true" editor-type-id="text-editor">
61
-            <state relative-caret-position="323">
62
-              <caret line="112" selection-start-line="112" selection-end-line="112" />
63
-            </state>
64
-          </provider>
65
-        </entry>
66
-      </file>
67
-      <file pinned="false" current-in-tab="false">
68
-        <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrayc.java">
69
-          <provider selected="true" editor-type-id="text-editor">
70
-            <state relative-caret-position="203">
71
-              <caret line="167" column="5" selection-start-line="167" selection-start-column="5" selection-end-line="167" selection-end-column="5" />
72
-              <folding>
73
-                <element signature="imports" expanded="true" />
74
-                <element signature="e#479#488#0" expanded="true" />
75
-                <element signature="e#2563#2564#0" expanded="true" />
76
-                <element signature="e#2590#2591#0" expanded="true" />
77
-              </folding>
78
-            </state>
79
-          </provider>
80
-        </entry>
81
-      </file>
82
-      <file pinned="false" current-in-tab="false">
83
-        <entry file="file://$PROJECT_DIR$/src/test/java/MoreArraysTest.java">
84
-          <provider selected="true" editor-type-id="text-editor">
85
-            <state relative-caret-position="611">
86
-              <caret line="194" column="7" selection-start-line="194" selection-start-column="7" selection-end-line="194" selection-end-column="7" />
87
-              <folding>
88
-                <element signature="imports" expanded="true" />
89
-                <element signature="e#3111#3120#0" expanded="true" />
90
-              </folding>
57
+            <state relative-caret-position="248">
58
+              <caret line="115" selection-start-line="115" selection-end-line="115" />
91 59
             </state>
92 60
           </provider>
93 61
         </entry>
94 62
       </file>
95 63
       <file pinned="false" current-in-tab="true">
96
-        <entry file="file://$PROJECT_DIR$/src/test/java/MinMaxTest.java">
64
+        <entry file="file://$PROJECT_DIR$/src/test/java/MoreArraysTest.java">
97 65
           <provider selected="true" editor-type-id="text-editor">
98
-            <state relative-caret-position="418">
99
-              <caret line="67" column="21" selection-start-line="67" selection-start-column="21" selection-end-line="67" selection-end-column="21" />
66
+            <state relative-caret-position="259">
67
+              <caret line="302" lean-forward="true" selection-start-line="299" selection-start-column="8" selection-end-line="302" />
100 68
               <folding>
101 69
                 <element signature="imports" expanded="true" />
102 70
               </folding>
@@ -105,13 +73,15 @@
105 73
         </entry>
106 74
       </file>
107 75
       <file pinned="false" current-in-tab="false">
108
-        <entry file="file://$PROJECT_DIR$/src/main/java/MinMax1.java">
76
+        <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrayc.java">
109 77
           <provider selected="true" editor-type-id="text-editor">
110
-            <state relative-caret-position="442">
111
-              <caret line="59" column="32" selection-start-line="59" selection-start-column="32" selection-end-line="59" selection-end-column="32" />
78
+            <state relative-caret-position="185">
79
+              <caret line="194" column="20" selection-start-line="194" selection-start-column="20" selection-end-line="194" selection-end-column="20" />
112 80
               <folding>
113
-                <element signature="e#875#876#0" expanded="true" />
114
-                <element signature="e#899#900#0" expanded="true" />
81
+                <element signature="imports" expanded="true" />
82
+                <element signature="e#479#488#0" expanded="true" />
83
+                <element signature="e#2563#2564#0" expanded="true" />
84
+                <element signature="e#2590#2591#0" expanded="true" />
115 85
               </folding>
116 86
             </state>
117 87
           </provider>
@@ -126,6 +96,14 @@
126 96
       </list>
127 97
     </option>
128 98
   </component>
99
+  <component name="FindInProjectRecents">
100
+    <findStrings>
101
+      <find>cont</find>
102
+      <find>remo</find>
103
+      <find>remove</find>
104
+      <find>add</find>
105
+    </findStrings>
106
+  </component>
129 107
   <component name="Git.Settings">
130 108
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
131 109
   </component>
@@ -142,11 +120,11 @@
142 120
         <option value="$PROJECT_DIR$/src/main/java/MinMax.java" />
143 121
         <option value="$PROJECT_DIR$/src/main/java/MinMaxMethods.java" />
144 122
         <option value="$PROJECT_DIR$/src/test/java/ArrazTest.java" />
123
+        <option value="$PROJECT_DIR$/src/test/java/MinMaxTest.java" />
124
+        <option value="$PROJECT_DIR$/src/main/java/MinMax1.java" />
145 125
         <option value="$PROJECT_DIR$/src/main/java/Arraz.java" />
146 126
         <option value="$PROJECT_DIR$/src/main/java/MoreArrayc.java" />
147
-        <option value="$PROJECT_DIR$/src/main/java/MinMax1.java" />
148 127
         <option value="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" />
149
-        <option value="$PROJECT_DIR$/src/test/java/MinMaxTest.java" />
150 128
       </list>
151 129
     </option>
152 130
   </component>
@@ -157,7 +135,7 @@
157 135
     <sorting>DEFINITION_ORDER</sorting>
158 136
   </component>
159 137
   <component name="ProjectFrameBounds">
160
-    <option name="x" value="50" />
138
+    <option name="x" value="370" />
161 139
     <option name="y" value="23" />
162 140
     <option name="width" value="991" />
163 141
     <option name="height" value="709" />
@@ -222,7 +200,7 @@
222 200
   <component name="PropertiesComponent">
223 201
     <property name="WebServerToolWindowFactoryState" value="false" />
224 202
     <property name="aspect.path.notification.shown" value="true" />
225
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544305064424" />
203
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544354306691" />
226 204
     <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
227 205
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
228 206
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -239,69 +217,71 @@
239 217
       </list>
240 218
     </option>
241 219
   </component>
242
-  <component name="RunManager" selected="JUnit.MinMaxTest.averageArrayWithoutMaxMinTEST">
243
-    <configuration name="ArrazTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
220
+  <component name="RunManager" selected="JUnit.MoreArraysTest.insertFirstThenCopyTEST">
221
+    <configuration name="MoreArraysTest.insertFirstThenCopyTEST" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
244 222
       <module name="arraz" />
245 223
       <option name="PACKAGE_NAME" value="" />
246
-      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
224
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
225
+      <option name="METHOD_NAME" value="insertFirstThenCopyTEST" />
226
+      <option name="TEST_OBJECT" value="method" />
247 227
       <method v="2">
248 228
         <option name="Make" enabled="true" />
249 229
       </method>
250 230
     </configuration>
251
-    <configuration name="MinMaxTest.arraysHas65N77TEST" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
231
+    <configuration name="MoreArraysTest.makeMeACopyPleaseTEST" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
252 232
       <module name="arraz" />
253 233
       <option name="PACKAGE_NAME" value="" />
254
-      <option name="MAIN_CLASS_NAME" value="MinMaxTest" />
255
-      <option name="METHOD_NAME" value="arraysHas65N77TEST" />
234
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
235
+      <option name="METHOD_NAME" value="makeMeACopyPleaseTEST" />
256 236
       <option name="TEST_OBJECT" value="method" />
257 237
       <method v="2">
258 238
         <option name="Make" enabled="true" />
259 239
       </method>
260 240
     </configuration>
261
-    <configuration name="MinMaxTest.arraysHas65N77TESTWIN" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
241
+    <configuration name="MoreArraysTest.removeFirstThenCopy" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
262 242
       <module name="arraz" />
263 243
       <option name="PACKAGE_NAME" value="" />
264
-      <option name="MAIN_CLASS_NAME" value="MinMaxTest" />
265
-      <option name="METHOD_NAME" value="arraysHas65N77TESTWIN" />
244
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
245
+      <option name="METHOD_NAME" value="removeFirstThenCopy" />
266 246
       <option name="TEST_OBJECT" value="method" />
267 247
       <method v="2">
268 248
         <option name="Make" enabled="true" />
269 249
       </method>
270 250
     </configuration>
271
-    <configuration name="MinMaxTest.averageArrayWithoutMaxMinTEST" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
251
+    <configuration name="MoreArraysTest.removeLastThenCopy" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
272 252
       <module name="arraz" />
273 253
       <option name="PACKAGE_NAME" value="" />
274
-      <option name="MAIN_CLASS_NAME" value="MinMaxTest" />
275
-      <option name="METHOD_NAME" value="averageArrayWithoutMaxMinTEST" />
254
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
255
+      <option name="METHOD_NAME" value="removeLastThenCopy" />
276 256
       <option name="TEST_OBJECT" value="method" />
277 257
       <method v="2">
278 258
         <option name="Make" enabled="true" />
279 259
       </method>
280 260
     </configuration>
281
-    <configuration name="MinMaxTest.getMax" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
261
+    <configuration name="MoreArraysTest.sumOfTensLookingFor30FAIL" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
282 262
       <module name="arraz" />
283 263
       <option name="PACKAGE_NAME" value="" />
284
-      <option name="MAIN_CLASS_NAME" value="MinMaxTest" />
285
-      <option name="METHOD_NAME" value="getMax" />
264
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
265
+      <option name="METHOD_NAME" value="sumOfTensLookingFor30FAIL" />
286 266
       <option name="TEST_OBJECT" value="method" />
287 267
       <method v="2">
288 268
         <option name="Make" enabled="true" />
289 269
       </method>
290 270
     </configuration>
291 271
     <list>
292
-      <item itemvalue="JUnit.MinMaxTest.getMax" />
293
-      <item itemvalue="JUnit.MinMaxTest.averageArrayWithoutMaxMinTEST" />
294
-      <item itemvalue="JUnit.ArrazTest" />
295
-      <item itemvalue="JUnit.MinMaxTest.arraysHas65N77TEST" />
296
-      <item itemvalue="JUnit.MinMaxTest.arraysHas65N77TESTWIN" />
272
+      <item itemvalue="JUnit.MoreArraysTest.sumOfTensLookingFor30FAIL" />
273
+      <item itemvalue="JUnit.MoreArraysTest.makeMeACopyPleaseTEST" />
274
+      <item itemvalue="JUnit.MoreArraysTest.removeFirstThenCopy" />
275
+      <item itemvalue="JUnit.MoreArraysTest.removeLastThenCopy" />
276
+      <item itemvalue="JUnit.MoreArraysTest.insertFirstThenCopyTEST" />
297 277
     </list>
298 278
     <recent_temporary>
299 279
       <list>
300
-        <item itemvalue="JUnit.MinMaxTest.averageArrayWithoutMaxMinTEST" />
301
-        <item itemvalue="JUnit.MinMaxTest.arraysHas65N77TESTWIN" />
302
-        <item itemvalue="JUnit.MinMaxTest.arraysHas65N77TEST" />
303
-        <item itemvalue="JUnit.ArrazTest" />
304
-        <item itemvalue="JUnit.MinMaxTest.getMax" />
280
+        <item itemvalue="JUnit.MoreArraysTest.insertFirstThenCopyTEST" />
281
+        <item itemvalue="JUnit.MoreArraysTest.removeLastThenCopy" />
282
+        <item itemvalue="JUnit.MoreArraysTest.removeFirstThenCopy" />
283
+        <item itemvalue="JUnit.MoreArraysTest.makeMeACopyPleaseTEST" />
284
+        <item itemvalue="JUnit.MoreArraysTest.sumOfTensLookingFor30FAIL" />
305 285
       </list>
306 286
     </recent_temporary>
307 287
   </component>
@@ -315,47 +295,47 @@
315 295
       <option name="number" value="Default" />
316 296
       <option name="presentableId" value="Default" />
317 297
       <updated>1544063273407</updated>
318
-      <workItem from="1544063277559" duration="54552000" />
298
+      <workItem from="1544063277559" duration="63264000" />
319 299
     </task>
320 300
     <servers />
321 301
   </component>
322 302
   <component name="TestHistory">
323
-    <history-entry file="MinMaxTest_averageArrayWithoutMaxMinTEST - 2018.12.08 at 15h 53m 54s.xml">
324
-      <configuration name="MinMaxTest.averageArrayWithoutMaxMinTEST" configurationId="JUnit" />
303
+    <history-entry file="MoreArraysTest_removeFirstThenCopy - 2018.12.08 at 18h 59m 21s.xml">
304
+      <configuration name="MoreArraysTest.removeFirstThenCopy" configurationId="JUnit" />
325 305
     </history-entry>
326
-    <history-entry file="MinMaxTest_arraysHas65N77TEST - 2018.12.08 at 16h 26m 08s.xml">
327
-      <configuration name="MinMaxTest.arraysHas65N77TEST" configurationId="JUnit" />
306
+    <history-entry file="MoreArraysTest_removeFirstThenCopy - 2018.12.08 at 18h 59m 51s.xml">
307
+      <configuration name="MoreArraysTest.removeFirstThenCopy" configurationId="JUnit" />
328 308
     </history-entry>
329
-    <history-entry file="MinMaxTest_arraysHas65N77TEST - 2018.12.08 at 16h 26m 16s.xml">
330
-      <configuration name="MinMaxTest.arraysHas65N77TEST" configurationId="JUnit" />
309
+    <history-entry file="MoreArraysTest_removeFirstThenCopy - 2018.12.08 at 19h 00m 03s.xml">
310
+      <configuration name="MoreArraysTest.removeFirstThenCopy" configurationId="JUnit" />
331 311
     </history-entry>
332
-    <history-entry file="MinMaxTest_arraysHas65N77TEST - 2018.12.08 at 16h 26m 49s.xml">
333
-      <configuration name="MinMaxTest.arraysHas65N77TEST" configurationId="JUnit" />
312
+    <history-entry file="MoreArraysTest_removeFirstThenCopy - 2018.12.08 at 19h 02m 37s.xml">
313
+      <configuration name="MoreArraysTest.removeFirstThenCopy" configurationId="JUnit" />
334 314
     </history-entry>
335
-    <history-entry file="MinMaxTest_arraysHas65N77TEST - 2018.12.08 at 16h 26m 58s.xml">
336
-      <configuration name="MinMaxTest.arraysHas65N77TEST" configurationId="JUnit" />
315
+    <history-entry file="MoreArraysTest_removeLastThenCopy - 2018.12.08 at 19h 03m 30s.xml">
316
+      <configuration name="MoreArraysTest.removeLastThenCopy" configurationId="JUnit" />
337 317
     </history-entry>
338
-    <history-entry file="MinMaxTest_arraysHas65N77TEST - 2018.12.08 at 16h 27m 05s.xml">
339
-      <configuration name="MinMaxTest.arraysHas65N77TEST" configurationId="JUnit" />
318
+    <history-entry file="MoreArraysTest_removeLastThenCopy - 2018.12.08 at 19h 03m 40s.xml">
319
+      <configuration name="MoreArraysTest.removeLastThenCopy" configurationId="JUnit" />
340 320
     </history-entry>
341
-    <history-entry file="MinMaxTest_arraysHas65N77TEST - 2018.12.08 at 16h 30m 12s.xml">
342
-      <configuration name="MinMaxTest.arraysHas65N77TEST" configurationId="JUnit" />
321
+    <history-entry file="MoreArraysTest_insertFirstThenCopyTEST - 2018.12.09 at 06h 08m 30s.xml">
322
+      <configuration name="MoreArraysTest.insertFirstThenCopyTEST" configurationId="JUnit" />
343 323
     </history-entry>
344
-    <history-entry file="MinMaxTest_arraysHas65N77TEST - 2018.12.08 at 16h 30m 36s.xml">
345
-      <configuration name="MinMaxTest.arraysHas65N77TEST" configurationId="JUnit" />
324
+    <history-entry file="MoreArraysTest_insertFirstThenCopyTEST - 2018.12.09 at 06h 08m 47s.xml">
325
+      <configuration name="MoreArraysTest.insertFirstThenCopyTEST" configurationId="JUnit" />
346 326
     </history-entry>
347
-    <history-entry file="MinMaxTest_arraysHas65N77TESTWIN - 2018.12.08 at 16h 30m 56s.xml">
348
-      <configuration name="MinMaxTest.arraysHas65N77TESTWIN" configurationId="JUnit" />
327
+    <history-entry file="MoreArraysTest_insertFirstThenCopyTEST - 2018.12.09 at 06h 09m 08s.xml">
328
+      <configuration name="MoreArraysTest.insertFirstThenCopyTEST" configurationId="JUnit" />
349 329
     </history-entry>
350
-    <history-entry file="MinMaxTest_arraysHas65N77TESTWIN - 2018.12.08 at 16h 31m 03s.xml">
351
-      <configuration name="MinMaxTest.arraysHas65N77TESTWIN" configurationId="JUnit" />
330
+    <history-entry file="MoreArraysTest_insertFirstThenCopyTEST - 2018.12.09 at 06h 09m 22s.xml">
331
+      <configuration name="MoreArraysTest.insertFirstThenCopyTEST" configurationId="JUnit" />
352 332
     </history-entry>
353 333
   </component>
354 334
   <component name="TimeTrackingManager">
355
-    <option name="totallyTimeSpent" value="54552000" />
335
+    <option name="totallyTimeSpent" value="63264000" />
356 336
   </component>
357 337
   <component name="ToolWindowManager">
358
-    <frame x="50" y="23" width="991" height="709" extended-state="0" />
338
+    <frame x="227" y="23" width="991" height="709" extended-state="0" />
359 339
     <editor active="true" />
360 340
     <layout>
361 341
       <window_info id="Image Layers" />
@@ -363,7 +343,7 @@
363 343
       <window_info id="UI Designer" />
364 344
       <window_info id="Capture Tool" />
365 345
       <window_info id="Favorites" side_tool="true" />
366
-      <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.49758455" visible="true" weight="0.23498419" />
346
+      <window_info content_ui="combo" id="Project" order="0" sideWeight="0.49758455" visible="true" weight="0.23498419" />
367 347
       <window_info id="Structure" order="1" sideWeight="0.5024155" side_tool="true" weight="0.23498419" />
368 348
       <window_info anchor="bottom" id="Messages" weight="0.3273906" />
369 349
       <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
@@ -372,7 +352,7 @@
372 352
       <window_info anchor="bottom" id="Event Log" side_tool="true" />
373 353
       <window_info anchor="bottom" id="Message" order="0" />
374 354
       <window_info anchor="bottom" id="Find" order="1" />
375
-      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32901135" />
355
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32901135" />
376 356
       <window_info anchor="bottom" id="Debug" order="3" weight="0.3987034" />
377 357
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
378 358
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
@@ -437,13 +417,6 @@
437 417
         </state>
438 418
       </provider>
439 419
     </entry>
440
-    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/org/junit/Assert.class">
441
-      <provider selected="true" editor-type-id="text-editor">
442
-        <state relative-caret-position="115">
443
-          <caret line="51" selection-start-line="51" selection-end-line="51" />
444
-        </state>
445
-      </provider>
446
-    </entry>
447 420
     <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar!/sun/reflect/NativeMethodAccessorImpl.class">
448 421
       <provider selected="true" editor-type-id="text-editor">
449 422
         <state relative-caret-position="102">
@@ -458,16 +431,6 @@
458 431
         </state>
459 432
       </provider>
460 433
     </entry>
461
-    <entry file="file://$PROJECT_DIR$/src/test/java/ArrazTest.java">
462
-      <provider selected="true" editor-type-id="text-editor">
463
-        <state relative-caret-position="2535">
464
-          <caret line="169" column="19" selection-start-line="169" selection-start-column="19" selection-end-line="169" selection-end-column="19" />
465
-          <folding>
466
-            <element signature="imports" expanded="true" />
467
-          </folding>
468
-        </state>
469
-      </provider>
470
-    </entry>
471 434
     <entry file="file://$PROJECT_DIR$/src/main/java/OddsAndEvensMethods.java">
472 435
       <provider selected="true" editor-type-id="text-editor">
473 436
         <state relative-caret-position="435">
@@ -482,52 +445,64 @@
482 445
         </state>
483 446
       </provider>
484 447
     </entry>
485
-    <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrayc.java">
448
+    <entry file="file://$PROJECT_DIR$/src/test/java/ArrazTest.java">
486 449
       <provider selected="true" editor-type-id="text-editor">
487
-        <state relative-caret-position="203">
488
-          <caret line="167" column="5" selection-start-line="167" selection-start-column="5" selection-end-line="167" selection-end-column="5" />
450
+        <state relative-caret-position="1573">
451
+          <caret line="169" column="19" selection-start-line="169" selection-start-column="19" selection-end-line="169" selection-end-column="19" />
489 452
           <folding>
490 453
             <element signature="imports" expanded="true" />
491
-            <element signature="e#479#488#0" expanded="true" />
492
-            <element signature="e#2563#2564#0" expanded="true" />
493
-            <element signature="e#2590#2591#0" expanded="true" />
494 454
           </folding>
495 455
         </state>
496 456
       </provider>
497 457
     </entry>
498
-    <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
458
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/org/junit/Assert.class">
499 459
       <provider selected="true" editor-type-id="text-editor">
500
-        <state relative-caret-position="323">
501
-          <caret line="112" selection-start-line="112" selection-end-line="112" />
460
+        <state relative-caret-position="209">
461
+          <caret line="176" column="38" lean-forward="true" selection-start-line="176" selection-start-column="38" selection-end-line="176" selection-end-column="38" />
502 462
         </state>
503 463
       </provider>
504 464
     </entry>
505 465
     <entry file="file://$PROJECT_DIR$/src/main/java/MinMax1.java">
506 466
       <provider selected="true" editor-type-id="text-editor">
507
-        <state relative-caret-position="442">
508
-          <caret line="59" column="32" selection-start-line="59" selection-start-column="32" selection-end-line="59" selection-end-column="32" />
467
+        <state relative-caret-position="277">
468
+          <caret line="53" selection-start-line="53" selection-end-line="53" />
469
+        </state>
470
+      </provider>
471
+    </entry>
472
+    <entry file="file://$PROJECT_DIR$/src/test/java/MinMaxTest.java">
473
+      <provider selected="true" editor-type-id="text-editor">
474
+        <state relative-caret-position="-503">
475
+          <caret line="65" lean-forward="true" selection-start-line="65" selection-end-line="65" />
509 476
           <folding>
510
-            <element signature="e#875#876#0" expanded="true" />
511
-            <element signature="e#899#900#0" expanded="true" />
477
+            <element signature="imports" expanded="true" />
512 478
           </folding>
513 479
         </state>
514 480
       </provider>
515 481
     </entry>
516
-    <entry file="file://$PROJECT_DIR$/src/test/java/MoreArraysTest.java">
482
+    <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
517 483
       <provider selected="true" editor-type-id="text-editor">
518
-        <state relative-caret-position="611">
519
-          <caret line="194" column="7" selection-start-line="194" selection-start-column="7" selection-end-line="194" selection-end-column="7" />
484
+        <state relative-caret-position="248">
485
+          <caret line="115" selection-start-line="115" selection-end-line="115" />
486
+        </state>
487
+      </provider>
488
+    </entry>
489
+    <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrayc.java">
490
+      <provider selected="true" editor-type-id="text-editor">
491
+        <state relative-caret-position="185">
492
+          <caret line="194" column="20" selection-start-line="194" selection-start-column="20" selection-end-line="194" selection-end-column="20" />
520 493
           <folding>
521 494
             <element signature="imports" expanded="true" />
522
-            <element signature="e#3111#3120#0" expanded="true" />
495
+            <element signature="e#479#488#0" expanded="true" />
496
+            <element signature="e#2563#2564#0" expanded="true" />
497
+            <element signature="e#2590#2591#0" expanded="true" />
523 498
           </folding>
524 499
         </state>
525 500
       </provider>
526 501
     </entry>
527
-    <entry file="file://$PROJECT_DIR$/src/test/java/MinMaxTest.java">
502
+    <entry file="file://$PROJECT_DIR$/src/test/java/MoreArraysTest.java">
528 503
       <provider selected="true" editor-type-id="text-editor">
529
-        <state relative-caret-position="418">
530
-          <caret line="67" column="21" selection-start-line="67" selection-start-column="21" selection-end-line="67" selection-end-column="21" />
504
+        <state relative-caret-position="259">
505
+          <caret line="302" lean-forward="true" selection-start-line="299" selection-start-column="8" selection-end-line="302" />
531 506
           <folding>
532 507
             <element signature="imports" expanded="true" />
533 508
           </folding>

+ 1
- 0
arraz/src/main/java/Arraz.java View File

@@ -116,4 +116,5 @@ public class Arraz {
116 116
 
117 117
 
118 118
 
119
+
119 120
 }

+ 0
- 7
arraz/src/main/java/MinMax1.java View File

@@ -51,10 +51,3 @@ public class MinMax1 {
51 51
 }
52 52
 
53 53
 
54
-//    theTotalofTensIs30`
55
-//    makeMeACopyPlease
56
-//    removeLastItemAndCopy
57
-//    removeFirstItemAndCopy
58
-//    insertAtStartAndCopy
59
-//    insertAtEndAndCopy
60
-//    sortArrayIntoEvensThenOdds

+ 38
- 11
arraz/src/main/java/MoreArrayc.java View File

@@ -7,7 +7,7 @@ public class MoreArrayc {
7 7
 
8 8
         Arraz cool = new Arraz();
9 9
 
10
-    public int findIndexOf(int[] arr, int value) {
10
+    public int findIndexOf(Integer[] arr, int value) {
11 11
 
12 12
         int container = 0;
13 13
 
@@ -74,18 +74,19 @@ public class MoreArrayc {
74 74
 
75 75
     public Integer[] removeFromArray(Integer [] arr, int value){
76 76
 
77
+        int size = arr.length;
77 78
 
78
-        for (int i = 0; i < arr.length; i++) {
79
+        int index = findIndexOf(arr,value);
79 80
 
80
-            if(arr[i] == value){
81
+        for (int i = index; i < size -1; i++) {
81 82
 
82 83
                 arr[i] = arr[i+1];
84
+        }
83 85
 
84 86
 
85
-            }
87
+        size = size - 1;
86 88
 
87
-        }
88
-        Integer[] cop = Arrays.copyOf(arr,arr.length-1);
89
+        Integer[] cop = Arrays.copyOf(arr,size);
89 90
         return cop;
90 91
 
91 92
     }
@@ -167,6 +168,36 @@ public class MoreArrayc {
167 168
         return flag;
168 169
     }
169 170
 
171
+    public Integer sumArrays (Integer [] arr){
172
+
173
+
174
+        for (int i = 0; i < arr.length; i++) {
175
+            arr[i] = i;
176
+        }
177
+        int sum = 0;
178
+        for (int e : arr) sum += e;
179
+
180
+        return sum;
181
+    }
182
+
183
+    public Integer[] makeMeACopyplz (Integer [] arr){
184
+        Arraz arraz = new Arraz();
185
+
186
+
187
+        Integer[] arr2 = copyArrayByIteratingthroughIt(arr);
188
+        Integer[] arr3 = arraz.reverseAnArray(arr2);
189
+
190
+        return arr3;
191
+    }
192
+
193
+    public Integer[] insertAtStartAndCopy(Integer[] arr,int value){
194
+
195
+        return null;
196
+
197
+    }
198
+
199
+
200
+
170 201
 
171 202
 }
172 203
 
@@ -176,11 +207,7 @@ public class MoreArrayc {
176 207
 
177 208
 //   averageArrayWithoutMaxMin
178 209
 
179
-//    ArrayHas65and77
180
-//    theTotalofTensIs30`
181
-//    makeMeACopyPlease
182
-//    removeLastItemAndCopy
183
-//    removeFirstItemAndCopy
210
+
184 211
 //    insertAtStartAndCopy
185 212
 //    insertAtEndAndCopy
186 213
 //    sortArrayIntoEvensThenOdds

+ 111
- 3
arraz/src/test/java/MoreArraysTest.java View File

@@ -2,6 +2,7 @@ import com.sun.xml.internal.xsom.impl.scd.Iterators;
2 2
 import org.junit.Assert;
3 3
 import org.junit.Test;
4 4
 
5
+import java.security.PublicKey;
5 6
 import java.util.ArrayList;
6 7
 import java.util.Arrays;
7 8
 import java.util.Iterator;
@@ -10,10 +11,11 @@ public class MoreArraysTest {
10 11
 
11 12
 
12 13
     MoreArrayc more = new MoreArrayc();
14
+    Arraz arraz = new Arraz();
13 15
     @Test
14 16
     public void findIndexOfTest() {
15 17
         //Given
16
-        int[] arr = {5, 1, 7, 8, 9, 4, 3};
18
+        Integer [] arr = {5, 1, 7, 8, 9, 4, 3};
17 19
         int value = 8;
18 20
 
19 21
 
@@ -30,7 +32,7 @@ public class MoreArraysTest {
30 32
     @Test
31 33
     public void findIndexOfTest2(){
32 34
         //Given
33
-        int [] arr = {5,1,7,8,9,4,3};
35
+        Integer[] arr = {5,1,7,8,9,4,3};
34 36
         int value = 5;
35 37
 
36 38
         //When
@@ -186,17 +188,123 @@ public class MoreArraysTest {
186 188
     }
187 189
 
188 190
     @Test
189
-    public void sumOfTens (){
191
+    public void sumOfTensLookingFor30TEST (){
190 192
         //Given
193
+        Integer [] arr = {10,10,10};
194
+
195
+        //When
196
+
197
+
198
+         Integer sum = arraz.sumValuesOfArrayInt(arr);
199
+         Boolean actual = sum == 30;
200
+
201
+
202
+        //Then
203
+
204
+        Assert.assertTrue(actual);
205
+    }
206
+
207
+    @Test
208
+    public void sumOfTensLookingFor30FAIL (){
209
+        //Given
210
+        Integer [] arr = {10,10,1};
211
+
212
+        //When
213
+
214
+
215
+        Integer sum = arraz.sumValuesOfArrayInt(arr);
216
+        Boolean actual = sum == 30;
217
+
218
+
219
+        //Then
220
+
221
+        Assert.assertFalse(actual);
222
+    }
223
+
224
+    @Test
225
+    public void makeMeACopyPleaseTEST(){
226
+
227
+        //Given
228
+
229
+        Integer [] arr = {5,1,7,8,9,4,3};
230
+        Integer [] reverse = {3,4,9,8,7,1,5};
231
+
232
+
233
+        //When
234
+
235
+        Integer [] actual = more.makeMeACopyplz(arr);
236
+
237
+        //Then
238
+        Assert.assertEquals(reverse,actual);
239
+
240
+    }
241
+
242
+    @Test
243
+    public void removeLastThenCopy(){
244
+        //Given
245
+
246
+        Integer [] arr = {5,1,7,8,9,4,3};
247
+        Integer [] copyRemove = {5,1,7,8,9,4};
248
+
249
+
250
+        //When
251
+
252
+        Integer [] arr2 = more.removeFromArray(arr,arr[arr.length-1]);
253
+
254
+        for (int i = 0; i < arr2.length ; i++) {
255
+            System.out.print(arr2[i]);
256
+        }
257
+
258
+
259
+        //Then
260
+        Assert.assertEquals(copyRemove,arr2);
261
+
262
+
263
+    }
264
+    @Test
265
+    public void removeFirstThenCopy(){
266
+        //Given
267
+
191 268
         Integer [] arr = {5,1,7,8,9,4,3};
269
+        Integer [] copyRemove = {1,7,8,9,4,3};
270
+
192 271
 
193 272
         //When
194 273
 
274
+        Integer [] arr2 = more.removeFromArray(arr,arr[0]);
275
+
276
+        for (int i = 0; i < arr2.length ; i++) {
277
+            System.out.print(arr2[i]);
278
+        }
279
+
280
+
281
+        //Then
282
+        Assert.assertEquals(copyRemove,arr2);
283
+
284
+
285
+    }
286
+
287
+    @Test
288
+    public void insertFirstThenCopyTEST(){
195 289
 
290
+        //Given
196 291
 
292
+        Integer [] arr = {5,1,7,8,9,4,3};
293
+        int value = 6;
294
+
295
+        //When
296
+
297
+        
298
+        arr[0] = value;
197 299
         //Then
300
+        for (int i = 0; i < arr.length-1 ; i++) {
301
+            System.out.println(arr);
302
+        }
303
+
304
+
198 305
 
199 306
 
200 307
     }
201 308
 
309
+
202 310
 }