Parcourir la source

updating arrays

Whitney Martinez il y a 6 ans
Parent
révision
8575a59b99

+ 115
- 140
arraz/.idea/workspace.xml Voir le fichier

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="88ea8df4-5dbc-49b8-b3df-2eb51cffc0b3" name="Default Changelist" comment="">
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
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
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
       <change beforePath="$PROJECT_DIR$/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Arraz.java" afterDir="false" />
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
       <change beforePath="$PROJECT_DIR$/src/main/java/MoreArrayc.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/MoreArrayc.java" afterDir="false" />
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
       <change beforePath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" afterDir="false" />
9
       <change beforePath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" afterDir="false" />
14
     </list>
10
     </list>
15
     <ignored path="$PROJECT_DIR$/target/" />
11
     <ignored path="$PROJECT_DIR$/target/" />
29
       </usages-collector>
25
       </usages-collector>
30
       <usages-collector id="statistics.file.extensions.open">
26
       <usages-collector id="statistics.file.extensions.open">
31
         <counts>
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
           <entry key="md" value="2" />
30
           <entry key="md" value="2" />
35
         </counts>
31
         </counts>
36
       </usages-collector>
32
       </usages-collector>
37
       <usages-collector id="statistics.file.types.open">
33
       <usages-collector id="statistics.file.types.open">
38
         <counts>
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
           <entry key="Markdown" value="2" />
37
           <entry key="Markdown" value="2" />
42
         </counts>
38
         </counts>
43
       </usages-collector>
39
       </usages-collector>
44
       <usages-collector id="statistics.file.extensions.edit">
40
       <usages-collector id="statistics.file.extensions.edit">
45
         <counts>
41
         <counts>
46
-          <entry key="java" value="10714" />
42
+          <entry key="java" value="12122" />
47
         </counts>
43
         </counts>
48
       </usages-collector>
44
       </usages-collector>
49
       <usages-collector id="statistics.file.types.edit">
45
       <usages-collector id="statistics.file.types.edit">
50
         <counts>
46
         <counts>
51
-          <entry key="JAVA" value="10714" />
47
+          <entry key="JAVA" value="12122" />
52
         </counts>
48
         </counts>
53
       </usages-collector>
49
       </usages-collector>
54
     </session>
50
     </session>
58
       <file pinned="false" current-in-tab="false">
54
       <file pinned="false" current-in-tab="false">
59
         <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
55
         <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
60
           <provider selected="true" editor-type-id="text-editor">
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
             </state>
59
             </state>
92
           </provider>
60
           </provider>
93
         </entry>
61
         </entry>
94
       </file>
62
       </file>
95
       <file pinned="false" current-in-tab="true">
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
           <provider selected="true" editor-type-id="text-editor">
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
               <folding>
68
               <folding>
101
                 <element signature="imports" expanded="true" />
69
                 <element signature="imports" expanded="true" />
102
               </folding>
70
               </folding>
105
         </entry>
73
         </entry>
106
       </file>
74
       </file>
107
       <file pinned="false" current-in-tab="false">
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
           <provider selected="true" editor-type-id="text-editor">
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
               <folding>
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
               </folding>
85
               </folding>
116
             </state>
86
             </state>
117
           </provider>
87
           </provider>
126
       </list>
96
       </list>
127
     </option>
97
     </option>
128
   </component>
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
   <component name="Git.Settings">
107
   <component name="Git.Settings">
130
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
108
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
131
   </component>
109
   </component>
142
         <option value="$PROJECT_DIR$/src/main/java/MinMax.java" />
120
         <option value="$PROJECT_DIR$/src/main/java/MinMax.java" />
143
         <option value="$PROJECT_DIR$/src/main/java/MinMaxMethods.java" />
121
         <option value="$PROJECT_DIR$/src/main/java/MinMaxMethods.java" />
144
         <option value="$PROJECT_DIR$/src/test/java/ArrazTest.java" />
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
         <option value="$PROJECT_DIR$/src/main/java/Arraz.java" />
125
         <option value="$PROJECT_DIR$/src/main/java/Arraz.java" />
146
         <option value="$PROJECT_DIR$/src/main/java/MoreArrayc.java" />
126
         <option value="$PROJECT_DIR$/src/main/java/MoreArrayc.java" />
147
-        <option value="$PROJECT_DIR$/src/main/java/MinMax1.java" />
148
         <option value="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" />
127
         <option value="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" />
149
-        <option value="$PROJECT_DIR$/src/test/java/MinMaxTest.java" />
150
       </list>
128
       </list>
151
     </option>
129
     </option>
152
   </component>
130
   </component>
157
     <sorting>DEFINITION_ORDER</sorting>
135
     <sorting>DEFINITION_ORDER</sorting>
158
   </component>
136
   </component>
159
   <component name="ProjectFrameBounds">
137
   <component name="ProjectFrameBounds">
160
-    <option name="x" value="50" />
138
+    <option name="x" value="370" />
161
     <option name="y" value="23" />
139
     <option name="y" value="23" />
162
     <option name="width" value="991" />
140
     <option name="width" value="991" />
163
     <option name="height" value="709" />
141
     <option name="height" value="709" />
222
   <component name="PropertiesComponent">
200
   <component name="PropertiesComponent">
223
     <property name="WebServerToolWindowFactoryState" value="false" />
201
     <property name="WebServerToolWindowFactoryState" value="false" />
224
     <property name="aspect.path.notification.shown" value="true" />
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
     <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
204
     <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
227
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
205
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
228
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
206
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
239
       </list>
217
       </list>
240
     </option>
218
     </option>
241
   </component>
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
       <module name="arraz" />
222
       <module name="arraz" />
245
       <option name="PACKAGE_NAME" value="" />
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
       <method v="2">
227
       <method v="2">
248
         <option name="Make" enabled="true" />
228
         <option name="Make" enabled="true" />
249
       </method>
229
       </method>
250
     </configuration>
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
       <module name="arraz" />
232
       <module name="arraz" />
253
       <option name="PACKAGE_NAME" value="" />
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
       <option name="TEST_OBJECT" value="method" />
236
       <option name="TEST_OBJECT" value="method" />
257
       <method v="2">
237
       <method v="2">
258
         <option name="Make" enabled="true" />
238
         <option name="Make" enabled="true" />
259
       </method>
239
       </method>
260
     </configuration>
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
       <module name="arraz" />
242
       <module name="arraz" />
263
       <option name="PACKAGE_NAME" value="" />
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
       <option name="TEST_OBJECT" value="method" />
246
       <option name="TEST_OBJECT" value="method" />
267
       <method v="2">
247
       <method v="2">
268
         <option name="Make" enabled="true" />
248
         <option name="Make" enabled="true" />
269
       </method>
249
       </method>
270
     </configuration>
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
       <module name="arraz" />
252
       <module name="arraz" />
273
       <option name="PACKAGE_NAME" value="" />
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
       <option name="TEST_OBJECT" value="method" />
256
       <option name="TEST_OBJECT" value="method" />
277
       <method v="2">
257
       <method v="2">
278
         <option name="Make" enabled="true" />
258
         <option name="Make" enabled="true" />
279
       </method>
259
       </method>
280
     </configuration>
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
       <module name="arraz" />
262
       <module name="arraz" />
283
       <option name="PACKAGE_NAME" value="" />
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
       <option name="TEST_OBJECT" value="method" />
266
       <option name="TEST_OBJECT" value="method" />
287
       <method v="2">
267
       <method v="2">
288
         <option name="Make" enabled="true" />
268
         <option name="Make" enabled="true" />
289
       </method>
269
       </method>
290
     </configuration>
270
     </configuration>
291
     <list>
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
     </list>
277
     </list>
298
     <recent_temporary>
278
     <recent_temporary>
299
       <list>
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
       </list>
285
       </list>
306
     </recent_temporary>
286
     </recent_temporary>
307
   </component>
287
   </component>
315
       <option name="number" value="Default" />
295
       <option name="number" value="Default" />
316
       <option name="presentableId" value="Default" />
296
       <option name="presentableId" value="Default" />
317
       <updated>1544063273407</updated>
297
       <updated>1544063273407</updated>
318
-      <workItem from="1544063277559" duration="54552000" />
298
+      <workItem from="1544063277559" duration="63264000" />
319
     </task>
299
     </task>
320
     <servers />
300
     <servers />
321
   </component>
301
   </component>
322
   <component name="TestHistory">
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
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
     </history-entry>
332
     </history-entry>
353
   </component>
333
   </component>
354
   <component name="TimeTrackingManager">
334
   <component name="TimeTrackingManager">
355
-    <option name="totallyTimeSpent" value="54552000" />
335
+    <option name="totallyTimeSpent" value="63264000" />
356
   </component>
336
   </component>
357
   <component name="ToolWindowManager">
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
     <editor active="true" />
339
     <editor active="true" />
360
     <layout>
340
     <layout>
361
       <window_info id="Image Layers" />
341
       <window_info id="Image Layers" />
363
       <window_info id="UI Designer" />
343
       <window_info id="UI Designer" />
364
       <window_info id="Capture Tool" />
344
       <window_info id="Capture Tool" />
365
       <window_info id="Favorites" side_tool="true" />
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
       <window_info id="Structure" order="1" sideWeight="0.5024155" side_tool="true" weight="0.23498419" />
347
       <window_info id="Structure" order="1" sideWeight="0.5024155" side_tool="true" weight="0.23498419" />
368
       <window_info anchor="bottom" id="Messages" weight="0.3273906" />
348
       <window_info anchor="bottom" id="Messages" weight="0.3273906" />
369
       <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
349
       <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
372
       <window_info anchor="bottom" id="Event Log" side_tool="true" />
352
       <window_info anchor="bottom" id="Event Log" side_tool="true" />
373
       <window_info anchor="bottom" id="Message" order="0" />
353
       <window_info anchor="bottom" id="Message" order="0" />
374
       <window_info anchor="bottom" id="Find" order="1" />
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
       <window_info anchor="bottom" id="Debug" order="3" weight="0.3987034" />
356
       <window_info anchor="bottom" id="Debug" order="3" weight="0.3987034" />
377
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
357
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
378
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
358
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
437
         </state>
417
         </state>
438
       </provider>
418
       </provider>
439
     </entry>
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
     <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar!/sun/reflect/NativeMethodAccessorImpl.class">
420
     <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar!/sun/reflect/NativeMethodAccessorImpl.class">
448
       <provider selected="true" editor-type-id="text-editor">
421
       <provider selected="true" editor-type-id="text-editor">
449
         <state relative-caret-position="102">
422
         <state relative-caret-position="102">
458
         </state>
431
         </state>
459
       </provider>
432
       </provider>
460
     </entry>
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
     <entry file="file://$PROJECT_DIR$/src/main/java/OddsAndEvensMethods.java">
434
     <entry file="file://$PROJECT_DIR$/src/main/java/OddsAndEvensMethods.java">
472
       <provider selected="true" editor-type-id="text-editor">
435
       <provider selected="true" editor-type-id="text-editor">
473
         <state relative-caret-position="435">
436
         <state relative-caret-position="435">
482
         </state>
445
         </state>
483
       </provider>
446
       </provider>
484
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding>
452
           <folding>
490
             <element signature="imports" expanded="true" />
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
           </folding>
454
           </folding>
495
         </state>
455
         </state>
496
       </provider>
456
       </provider>
497
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
462
         </state>
503
       </provider>
463
       </provider>
504
     </entry>
464
     </entry>
505
     <entry file="file://$PROJECT_DIR$/src/main/java/MinMax1.java">
465
     <entry file="file://$PROJECT_DIR$/src/main/java/MinMax1.java">
506
       <provider selected="true" editor-type-id="text-editor">
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
           <folding>
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
           </folding>
478
           </folding>
513
         </state>
479
         </state>
514
       </provider>
480
       </provider>
515
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding>
493
           <folding>
521
             <element signature="imports" expanded="true" />
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
           </folding>
498
           </folding>
524
         </state>
499
         </state>
525
       </provider>
500
       </provider>
526
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding>
506
           <folding>
532
             <element signature="imports" expanded="true" />
507
             <element signature="imports" expanded="true" />
533
           </folding>
508
           </folding>

+ 1
- 0
arraz/src/main/java/Arraz.java Voir le fichier

116
 
116
 
117
 
117
 
118
 
118
 
119
+
119
 }
120
 }

+ 0
- 7
arraz/src/main/java/MinMax1.java Voir le fichier

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 Voir le fichier

7
 
7
 
8
         Arraz cool = new Arraz();
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
         int container = 0;
12
         int container = 0;
13
 
13
 
74
 
74
 
75
     public Integer[] removeFromArray(Integer [] arr, int value){
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
                 arr[i] = arr[i+1];
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
         return cop;
90
         return cop;
90
 
91
 
91
     }
92
     }
167
         return flag;
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
 
207
 
177
 //   averageArrayWithoutMaxMin
208
 //   averageArrayWithoutMaxMin
178
 
209
 
179
-//    ArrayHas65and77
180
-//    theTotalofTensIs30`
181
-//    makeMeACopyPlease
182
-//    removeLastItemAndCopy
183
-//    removeFirstItemAndCopy
210
+
184
 //    insertAtStartAndCopy
211
 //    insertAtStartAndCopy
185
 //    insertAtEndAndCopy
212
 //    insertAtEndAndCopy
186
 //    sortArrayIntoEvensThenOdds
213
 //    sortArrayIntoEvensThenOdds

+ 111
- 3
arraz/src/test/java/MoreArraysTest.java Voir le fichier

2
 import org.junit.Assert;
2
 import org.junit.Assert;
3
 import org.junit.Test;
3
 import org.junit.Test;
4
 
4
 
5
+import java.security.PublicKey;
5
 import java.util.ArrayList;
6
 import java.util.ArrayList;
6
 import java.util.Arrays;
7
 import java.util.Arrays;
7
 import java.util.Iterator;
8
 import java.util.Iterator;
10
 
11
 
11
 
12
 
12
     MoreArrayc more = new MoreArrayc();
13
     MoreArrayc more = new MoreArrayc();
14
+    Arraz arraz = new Arraz();
13
     @Test
15
     @Test
14
     public void findIndexOfTest() {
16
     public void findIndexOfTest() {
15
         //Given
17
         //Given
16
-        int[] arr = {5, 1, 7, 8, 9, 4, 3};
18
+        Integer [] arr = {5, 1, 7, 8, 9, 4, 3};
17
         int value = 8;
19
         int value = 8;
18
 
20
 
19
 
21
 
30
     @Test
32
     @Test
31
     public void findIndexOfTest2(){
33
     public void findIndexOfTest2(){
32
         //Given
34
         //Given
33
-        int [] arr = {5,1,7,8,9,4,3};
35
+        Integer[] arr = {5,1,7,8,9,4,3};
34
         int value = 5;
36
         int value = 5;
35
 
37
 
36
         //When
38
         //When
186
     }
188
     }
187
 
189
 
188
     @Test
190
     @Test
189
-    public void sumOfTens (){
191
+    public void sumOfTensLookingFor30TEST (){
190
         //Given
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
         Integer [] arr = {5,1,7,8,9,4,3};
268
         Integer [] arr = {5,1,7,8,9,4,3};
269
+        Integer [] copyRemove = {1,7,8,9,4,3};
270
+
192
 
271
 
193
         //When
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
         //Then
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
 }