#26 almost finsihed..

Avoinna
ElliottStansbury haluaa yhdistää 2 committia lähteestä ElliottStansbury/ArraysGoneWild:master kohteeseen master

+ 4
- 0
.idea/encodings.xml Näytä tiedosto

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Encoding" addBOMForNewFiles="with NO BOM" />
4
+</project>

+ 1
- 0
.idea/misc.xml Näytä tiedosto

@@ -7,4 +7,5 @@
7 7
       </list>
8 8
     </option>
9 9
   </component>
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8.0_192" project-jdk-type="JavaSDK" />
10 11
 </project>

+ 418
- 245
.idea/workspace.xml Näytä tiedosto

@@ -2,58 +2,94 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
-      <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
5
+      <change afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/arraz/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/arraz.iml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7 13
     </list>
8 14
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9 15
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
-    <option name="TRACKING_ENABLED" value="true" />
11 16
     <option name="SHOW_DIALOG" value="false" />
12 17
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
13 18
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14 19
     <option name="LAST_RESOLUTION" value="IGNORE" />
15 20
   </component>
21
+  <component name="DockManager">
22
+    <window id="1">
23
+      <content type="file-editors">
24
+        <state>
25
+          <leaf>
26
+            <file pinned="false" current-in-tab="true">
27
+              <entry file="file://$PROJECT_DIR$/README.md">
28
+                <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
29
+                  <state split_layout="SPLIT">
30
+                    <first_editor relative-caret-position="97">
31
+                      <caret line="18" selection-start-line="18" selection-end-line="18" />
32
+                    </first_editor>
33
+                    <second_editor />
34
+                  </state>
35
+                </provider>
36
+              </entry>
37
+            </file>
38
+          </leaf>
39
+        </state>
40
+      </content>
41
+    </window>
42
+  </component>
43
+  <component name="ErrorTreeViewConfiguration">
44
+    <option name="hideWarnings" value="true" />
45
+    <option name="HIDE_WARNINGS" value="true" />
46
+  </component>
16 47
   <component name="FileEditorManager">
17 48
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
18
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
49
+      <file pinned="false" current-in-tab="false">
19 50
         <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
20
-          <provider selected="true" editor-type-id="text-editor">
21
-            <state relative-caret-position="0">
22
-              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
23
-              <folding />
24
-            </state>
25
-          </provider>
51
+          <provider selected="true" editor-type-id="text-editor" />
26 52
         </entry>
27 53
       </file>
28
-      <file leaf-file-name="Arraz.java" pinned="false" current-in-tab="false">
54
+      <file pinned="false" current-in-tab="true">
29 55
         <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
30 56
           <provider selected="true" editor-type-id="text-editor">
31
-            <state relative-caret-position="0">
32
-              <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
33
-              <folding />
57
+            <state relative-caret-position="492">
58
+              <caret line="306" selection-start-line="306" selection-end-line="306" />
59
+              <folding>
60
+                <element signature="imports" expanded="true" />
61
+                <element signature="e#2999#3008#0" expanded="true" />
62
+                <element signature="e#3647#3656#0" expanded="true" />
63
+                <element signature="e#3710#3719#0" expanded="true" />
64
+                <element signature="e#4092#4100#0" expanded="true" />
65
+                <element signature="e#4146#4154#0" expanded="true" />
66
+              </folding>
34 67
             </state>
35 68
           </provider>
36 69
         </entry>
37 70
       </file>
38
-      <file leaf-file-name="ArrazTest.java" pinned="false" current-in-tab="false">
71
+      <file pinned="false" current-in-tab="false">
39 72
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
40 73
           <provider selected="true" editor-type-id="text-editor">
41
-            <state relative-caret-position="34">
42
-              <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
43
-              <folding />
74
+            <state relative-caret-position="565">
75
+              <caret line="515" column="27" selection-start-line="515" selection-start-column="27" selection-end-line="515" selection-end-column="27" />
76
+              <folding>
77
+                <element signature="imports" expanded="true" />
78
+              </folding>
44 79
             </state>
45 80
           </provider>
46 81
         </entry>
47 82
       </file>
48
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
49
-        <entry file="file://$PROJECT_DIR$/README.md">
50
-          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
51
-            <state split_layout="SPLIT">
52
-              <first_editor relative-caret-position="306">
53
-                <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
54
-                <folding />
55
-              </first_editor>
56
-              <second_editor />
83
+      <file pinned="false" current-in-tab="false">
84
+        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
85
+          <provider selected="true" editor-type-id="text-editor">
86
+            <state relative-caret-position="15">
87
+              <caret line="3" column="25" selection-start-column="7" selection-end-line="4" />
88
+              <folding>
89
+                <element signature="imports" expanded="true" />
90
+                <element signature="e#907#908#0" expanded="true" />
91
+                <element signature="e#965#966#0" expanded="true" />
92
+              </folding>
57 93
             </state>
58 94
           </provider>
59 95
         </entry>
@@ -63,38 +99,33 @@
63 99
   <component name="FileTemplateManagerImpl">
64 100
     <option name="RECENT_TEMPLATES">
65 101
       <list>
66
-        <option value="Class" />
67 102
         <option value="JUnit4 Test Class" />
103
+        <option value="Class" />
68 104
       </list>
69 105
     </option>
70 106
   </component>
107
+  <component name="FindInProjectRecents">
108
+    <findStrings>
109
+      <find>remove</find>
110
+      <find>max</find>
111
+      <find>System</find>
112
+      <find>syste</find>
113
+    </findStrings>
114
+  </component>
71 115
   <component name="Git.Settings">
72 116
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73 117
   </component>
74
-  <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78
-    <option name="projectSyncType">
79
-      <map>
80
-        <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
81
-      </map>
82
-    </option>
83
-  </component>
84 118
   <component name="IdeDocumentHistory">
85 119
     <option name="CHANGED_PATHS">
86 120
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88 121
         <option value="$PROJECT_DIR$/README.md" />
122
+        <option value="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" />
123
+        <option value="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" />
124
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
125
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
89 126
       </list>
90 127
     </option>
91 128
   </component>
92
-  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
93
-  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
94
-  <component name="JsGulpfileManager">
95
-    <detection-done>true</detection-done>
96
-    <sorting>DEFINITION_ORDER</sorting>
97
-  </component>
98 129
   <component name="MavenImportPreferences">
99 130
     <option name="importingSettings">
100 131
       <MavenImportingSettings>
@@ -102,27 +133,16 @@
102 133
       </MavenImportingSettings>
103 134
     </option>
104 135
   </component>
105
-  <component name="ProjectFrameBounds">
106
-    <option name="x" value="242" />
107
-    <option name="y" value="45" />
108
-    <option name="width" value="1538" />
109
-    <option name="height" value="962" />
136
+  <component name="ProjectFrameBounds" fullScreen="true">
137
+    <option name="width" value="1680" />
138
+    <option name="height" value="1050" />
110 139
   </component>
111 140
   <component name="ProjectView">
112
-    <navigator currentView="ProjectPane" proportions="" version="1">
113
-      <flattenPackages />
114
-      <showMembers />
115
-      <showModules />
116
-      <showLibraryContents />
117
-      <hideEmptyPackages />
118
-      <abbreviatePackageNames />
119
-      <autoscrollToSource />
120
-      <autoscrollFromSource />
121
-      <sortByType />
122
-      <manualOrder />
141
+    <navigator proportions="" version="1">
123 142
       <foldersAlwaysOnTop value="true" />
124 143
     </navigator>
125 144
     <panes>
145
+      <pane id="Scope" />
126 146
       <pane id="ProjectPane">
127 147
         <subPane>
128 148
           <expand>
@@ -151,27 +171,51 @@
151 171
             <path>
152 172
               <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
153 173
               <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
174
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
175
+              <item name="src" type="462c0819:PsiDirectoryNode" />
176
+              <item name="main" type="462c0819:PsiDirectoryNode" />
177
+              <item name="java" type="462c0819:PsiDirectoryNode" />
178
+            </path>
179
+            <path>
180
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
181
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
182
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
183
+              <item name="src" type="462c0819:PsiDirectoryNode" />
184
+              <item name="test" type="462c0819:PsiDirectoryNode" />
185
+            </path>
186
+            <path>
187
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
188
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
189
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
190
+              <item name="src" type="462c0819:PsiDirectoryNode" />
191
+              <item name="test" type="462c0819:PsiDirectoryNode" />
192
+              <item name="java" type="462c0819:PsiDirectoryNode" />
193
+            </path>
194
+            <path>
195
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
196
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
154 197
               <item name="DocumentationOnArrays" type="462c0819:PsiDirectoryNode" />
155 198
             </path>
156 199
           </expand>
157 200
           <select />
158 201
         </subPane>
159 202
       </pane>
160
-      <pane id="Scratches" />
161 203
       <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163
-      <pane id="Scope" />
164 204
     </panes>
165 205
   </component>
166 206
   <component name="PropertiesComponent">
167
-    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
168
-    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
207
+    <property name="GO_FMT" value="false" />
169 208
     <property name="WebServerToolWindowFactoryState" value="false" />
170 209
     <property name="aspect.path.notification.shown" value="true" />
171
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
172
-    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
210
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544416316395" />
173 211
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
212
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
213
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
214
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
215
+    <property name="project.structure.last.edited" value="Facets" />
216
+    <property name="project.structure.proportion" value="0.0" />
217
+    <property name="project.structure.side.proportion" value="0.2" />
218
+    <property name="settings.editor.selected.configurable" value="reference.settings.deploy.options" />
175 219
   </component>
176 220
   <component name="RecentsManager">
177 221
     <key name="CreateTestDialog.RecentsKey">
@@ -193,90 +237,111 @@
193 237
       </list>
194 238
     </option>
195 239
   </component>
196
-  <component name="RunManager">
197
-    <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
240
+  <component name="RunManager" selected="JUnit.ArrazTest">
241
+    <configuration default="true" type="Applet">
200 242
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
243
+      <method v="2">
244
+        <option name="Make" enabled="true" />
245
+      </method>
202 246
     </configuration>
203 247
     <configuration default="true" type="Application" factoryName="Application">
204
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
205
-      <option name="MAIN_CLASS_NAME" />
206
-      <option name="VM_PARAMETERS" />
207
-      <option name="PROGRAM_PARAMETERS" />
208 248
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
209
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
210
-      <option name="ALTERNATIVE_JRE_PATH" />
211
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
212
-      <option name="ENV_VARIABLES" />
213
-      <option name="PASS_PARENT_ENVS" value="true" />
214
-      <module name="" />
215
-      <envs />
249
+      <method v="2">
250
+        <option name="Make" enabled="true" />
251
+      </method>
216 252
     </configuration>
217
-    <configuration default="true" type="JUnit" factoryName="JUnit">
218
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
219
-      <module name="" />
220
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
221
-      <option name="ALTERNATIVE_JRE_PATH" />
222
-      <option name="PACKAGE_NAME" />
223
-      <option name="MAIN_CLASS_NAME" />
224
-      <option name="METHOD_NAME" />
225
-      <option name="TEST_OBJECT" value="class" />
226
-      <option name="VM_PARAMETERS" value="-ea" />
227
-      <option name="PARAMETERS" />
253
+    <configuration name="ArrazTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
254
+      <module name="arraz" />
255
+      <option name="PACKAGE_NAME" value="" />
256
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
228 257
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
229
-      <option name="ENV_VARIABLES" />
230
-      <option name="PASS_PARENT_ENVS" value="true" />
231
-      <option name="TEST_SEARCH_SCOPE">
232
-        <value defaultName="singleModule" />
233
-      </option>
234
-      <envs />
235
-      <patterns />
258
+      <method v="2">
259
+        <option name="Make" enabled="true" />
260
+      </method>
236 261
     </configuration>
237
-    <configuration default="true" type="Remote" factoryName="Remote">
238
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
239
-      <option name="SERVER_MODE" value="false" />
240
-      <option name="SHMEM_ADDRESS" value="javadebug" />
241
-      <option name="HOST" value="localhost" />
242
-      <option name="PORT" value="5005" />
262
+    <configuration name="ArrazTest.test1arrayHas65and77" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
263
+      <module name="arraz" />
264
+      <option name="PACKAGE_NAME" value="" />
265
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
266
+      <option name="METHOD_NAME" value="test1arrayHas65and77" />
267
+      <option name="TEST_OBJECT" value="method" />
268
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
269
+      <method v="2">
270
+        <option name="Make" enabled="true" />
271
+      </method>
243 272
     </configuration>
244
-    <configuration default="true" type="TestNG" factoryName="TestNG">
245
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
246
-      <module name="" />
247
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
248
-      <option name="ALTERNATIVE_JRE_PATH" />
249
-      <option name="SUITE_NAME" />
250
-      <option name="PACKAGE_NAME" />
251
-      <option name="MAIN_CLASS_NAME" />
252
-      <option name="METHOD_NAME" />
253
-      <option name="GROUP_NAME" />
254
-      <option name="TEST_OBJECT" value="CLASS" />
255
-      <option name="VM_PARAMETERS" value="-ea" />
256
-      <option name="PARAMETERS" />
273
+    <configuration name="ArrazTest.test1getOddEvensOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
274
+      <module name="arraz" />
275
+      <option name="PACKAGE_NAME" value="" />
276
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
277
+      <option name="METHOD_NAME" value="test1getOddEvensOfArray" />
278
+      <option name="TEST_OBJECT" value="method" />
279
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
280
+      <method v="2">
281
+        <option name="Make" enabled="true" />
282
+      </method>
283
+    </configuration>
284
+    <configuration name="ArrazTest.test1makeMeAnArrayFromArrayList" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
285
+      <module name="arraz" />
286
+      <option name="PACKAGE_NAME" value="" />
287
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
288
+      <option name="METHOD_NAME" value="test1makeMeAnArrayFromArrayList" />
289
+      <option name="TEST_OBJECT" value="method" />
290
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
291
+      <method v="2">
292
+        <option name="Make" enabled="true" />
293
+      </method>
294
+    </configuration>
295
+    <configuration name="ArrazTest.test1removeDupesFromArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
296
+      <module name="arraz" />
297
+      <option name="PACKAGE_NAME" value="" />
298
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
299
+      <option name="METHOD_NAME" value="test1removeDupesFromArray" />
300
+      <option name="TEST_OBJECT" value="method" />
301
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
302
+      <method v="2">
303
+        <option name="Make" enabled="true" />
304
+      </method>
305
+    </configuration>
306
+    <configuration default="true" type="JUnit" factoryName="JUnit">
307
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
308
+      <method v="2">
309
+        <option name="Make" enabled="true" />
310
+      </method>
311
+    </configuration>
312
+    <configuration default="true" type="TestNG">
257 313
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
258
-      <option name="OUTPUT_DIRECTORY" />
259
-      <option name="ANNOTATION_TYPE" />
260
-      <option name="ENV_VARIABLES" />
261
-      <option name="PASS_PARENT_ENVS" value="true" />
262
-      <option name="TEST_SEARCH_SCOPE">
263
-        <value defaultName="singleModule" />
264
-      </option>
265
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
266
-      <option name="PROPERTIES_FILE" />
267
-      <envs />
268 314
       <properties />
269 315
       <listeners />
316
+      <method v="2">
317
+        <option name="Make" enabled="true" />
318
+      </method>
270 319
     </configuration>
271
-    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
320
+    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType">
272 321
       <module name="" />
273 322
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274 323
       <option name="PROGRAM_PARAMETERS" />
275
-      <predefined_log_file id="idea.log" enabled="true" />
324
+      <predefined_log_file enabled="true" id="idea.log" />
325
+      <method v="2">
326
+        <option name="Make" enabled="true" />
327
+      </method>
276 328
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
329
+    <list>
330
+      <item itemvalue="JUnit.ArrazTest" />
331
+      <item itemvalue="JUnit.ArrazTest.test1getOddEvensOfArray" />
332
+      <item itemvalue="JUnit.ArrazTest.test1removeDupesFromArray" />
333
+      <item itemvalue="JUnit.ArrazTest.test1makeMeAnArrayFromArrayList" />
334
+      <item itemvalue="JUnit.ArrazTest.test1arrayHas65and77" />
335
+    </list>
336
+    <recent_temporary>
337
+      <list>
338
+        <item itemvalue="JUnit.ArrazTest" />
339
+        <item itemvalue="JUnit.ArrazTest.test1arrayHas65and77" />
340
+        <item itemvalue="JUnit.ArrazTest.test1makeMeAnArrayFromArrayList" />
341
+        <item itemvalue="JUnit.ArrazTest.test1removeDupesFromArray" />
342
+        <item itemvalue="JUnit.ArrazTest.test1getOddEvensOfArray" />
343
+      </list>
344
+    </recent_temporary>
280 345
   </component>
281 346
   <component name="SvnConfiguration">
282 347
     <configuration />
@@ -291,6 +356,10 @@
291 356
       <workItem from="1543955862749" duration="2347000" />
292 357
       <workItem from="1543958998826" duration="113000" />
293 358
       <workItem from="1544020724645" duration="762000" />
359
+      <workItem from="1544126972644" duration="5602000" />
360
+      <workItem from="1544141043948" duration="2002000" />
361
+      <workItem from="1544145067998" duration="6921000" />
362
+      <workItem from="1544199483766" duration="30337000" />
294 363
     </task>
295 364
     <task id="LOCAL-00001" summary="readme and docs">
296 365
       <created>1544021313039</created>
@@ -302,156 +371,188 @@
302 371
     <option name="localTasksCounter" value="2" />
303 372
     <servers />
304 373
   </component>
374
+  <component name="TestHistory">
375
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 25m 20s.xml">
376
+      <configuration name="ArrazTest" configurationId="JUnit" />
377
+    </history-entry>
378
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 27m 15s.xml">
379
+      <configuration name="ArrazTest" configurationId="JUnit" />
380
+    </history-entry>
381
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 27m 33s.xml">
382
+      <configuration name="ArrazTest" configurationId="JUnit" />
383
+    </history-entry>
384
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 28m 18s.xml">
385
+      <configuration name="ArrazTest" configurationId="JUnit" />
386
+    </history-entry>
387
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 29m 04s.xml">
388
+      <configuration name="ArrazTest" configurationId="JUnit" />
389
+    </history-entry>
390
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 29m 15s.xml">
391
+      <configuration name="ArrazTest" configurationId="JUnit" />
392
+    </history-entry>
393
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 29m 50s.xml">
394
+      <configuration name="ArrazTest" configurationId="JUnit" />
395
+    </history-entry>
396
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 30m 32s.xml">
397
+      <configuration name="ArrazTest" configurationId="JUnit" />
398
+    </history-entry>
399
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 30m 40s.xml">
400
+      <configuration name="ArrazTest" configurationId="JUnit" />
401
+    </history-entry>
402
+    <history-entry file="ArrazTest - 2018.12.09 at 23h 31m 49s.xml">
403
+      <configuration name="ArrazTest" configurationId="JUnit" />
404
+    </history-entry>
405
+  </component>
305 406
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
407
+    <option name="totallyTimeSpent" value="48084000" />
307 408
   </component>
308 409
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
410
+    <frame x="0" y="0" width="1680" height="1050" extended-state="0" />
310 411
     <editor active="true" />
311 412
     <layout>
312
-      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
313
-      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
314
-      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
315
-      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
316
-      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
317
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
318
-      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
319
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
320
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
321
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
322
-      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
323
-      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
324
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2577389" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
325
-      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
326
-      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
327
-      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
328
-      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
329
-      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
330
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
331
-      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
332
-      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
333
-      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
334
-      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
335
-      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
336
-      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
337
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
413
+      <window_info content_ui="combo" id="Project" order="0" weight="0.13186814" />
414
+      <window_info id="Structure" order="1" weight="0.24969475" />
415
+      <window_info id="Image Layers" order="2" />
416
+      <window_info id="Designer" order="3" />
417
+      <window_info id="UI Designer" order="4" />
418
+      <window_info id="Capture Tool" order="5" />
419
+      <window_info id="Favorites" order="6" side_tool="true" />
420
+      <window_info anchor="bottom" id="Message" order="0" />
421
+      <window_info anchor="bottom" id="Find" order="1" />
422
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32959184" />
423
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
424
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
425
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
426
+      <window_info anchor="bottom" id="TODO" order="6" />
427
+      <window_info anchor="bottom" id="Terminal" order="7" />
428
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
429
+      <window_info anchor="bottom" id="Version Control" order="9" />
430
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
431
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32857144" />
432
+      <window_info anchor="bottom" id="Docker" order="12" show_stripe_button="false" />
433
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
434
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
435
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
436
+      <window_info anchor="right" id="Palette" order="3" />
437
+      <window_info anchor="right" id="Capture Analysis" order="4" />
438
+      <window_info anchor="right" id="Theme Preview" order="5" />
439
+      <window_info anchor="right" id="Database" order="6" />
440
+      <window_info anchor="right" id="Palette&#9;" order="7" />
441
+      <window_info anchor="right" id="Maven Projects" order="8" />
442
+      <window_info anchor="right" id="Maven" order="9" />
338 443
     </layout>
444
+    <layout-to-restore>
445
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.13186814" />
446
+      <window_info id="Structure" order="1" weight="0.25" />
447
+      <window_info id="Image Layers" order="2" />
448
+      <window_info id="Designer" order="3" />
449
+      <window_info id="UI Designer" order="4" />
450
+      <window_info id="Capture Tool" order="5" />
451
+      <window_info id="Favorites" order="6" side_tool="true" />
452
+      <window_info anchor="bottom" id="Message" order="0" />
453
+      <window_info anchor="bottom" id="Find" order="1" />
454
+      <window_info anchor="bottom" id="Run" order="2" weight="0.32959184" />
455
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
456
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
457
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
458
+      <window_info anchor="bottom" id="TODO" order="6" />
459
+      <window_info anchor="bottom" id="Terminal" order="7" />
460
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
461
+      <window_info anchor="bottom" id="Version Control" order="9" />
462
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
463
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32857144" />
464
+      <window_info anchor="bottom" id="Docker" order="12" show_stripe_button="false" />
465
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
466
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
467
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
468
+      <window_info anchor="right" id="Palette" order="3" />
469
+      <window_info anchor="right" id="Capture Analysis" order="4" />
470
+      <window_info anchor="right" id="Theme Preview" order="5" />
471
+      <window_info anchor="right" id="Database" order="6" />
472
+      <window_info anchor="right" id="Palette&#9;" order="7" />
473
+      <window_info anchor="right" id="Maven Projects" order="8" />
474
+      <window_info anchor="right" id="Maven" order="9" />
475
+    </layout-to-restore>
339 476
   </component>
340 477
   <component name="TypeScriptGeneratedFilesManager">
341 478
     <option name="version" value="1" />
342 479
   </component>
343
-  <component name="VcsContentAnnotationSettings">
344
-    <option name="myLimit" value="2678400000" />
345
-  </component>
346 480
   <component name="VcsManagerConfiguration">
347 481
     <MESSAGE value="readme and docs" />
348 482
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349 483
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354 484
   <component name="editorHistoryManager">
355
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
356
-      <provider selected="true" editor-type-id="text-editor">
357
-        <state relative-caret-position="0">
358
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
359
-          <folding />
360
-        </state>
361
-      </provider>
362
-    </entry>
363
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
485
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
364 486
       <provider selected="true" editor-type-id="text-editor">
365
-        <state relative-caret-position="0">
366
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
367
-          <folding />
487
+        <state relative-caret-position="371">
488
+          <caret line="27" column="20" selection-start-line="27" selection-start-column="20" selection-end-line="27" selection-end-column="20" />
489
+          <folding>
490
+            <element signature="e#209#210#0" expanded="true" />
491
+            <element signature="e#235#236#0" expanded="true" />
492
+            <element signature="e#270#271#0" expanded="true" />
493
+            <element signature="e#300#301#0" expanded="true" />
494
+            <element signature="e#327#328#0" expanded="true" />
495
+            <element signature="e#353#354#0" expanded="true" />
496
+            <element signature="e#388#389#0" expanded="true" />
497
+            <element signature="e#418#419#0" expanded="true" />
498
+            <element signature="e#760#761#0" expanded="true" />
499
+            <element signature="e#815#816#0" expanded="true" />
500
+          </folding>
368 501
         </state>
369 502
       </provider>
370 503
     </entry>
371
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
504
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/src.zip!/java/util/ArrayList.java">
372 505
       <provider selected="true" editor-type-id="text-editor">
373
-        <state relative-caret-position="34">
374
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
375
-          <folding />
376
-        </state>
377
-      </provider>
378
-    </entry>
379
-    <entry file="file://$PROJECT_DIR$/README.md">
380
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
381
-        <state split_layout="SPLIT">
382
-          <first_editor relative-caret-position="1241">
383
-            <caret line="73" column="0" lean-forward="true" selection-start-line="73" selection-start-column="0" selection-end-line="73" selection-end-column="0" />
384
-            <folding />
385
-          </first_editor>
386
-          <second_editor />
506
+        <state relative-caret-position="210">
507
+          <caret line="656" selection-start-line="656" selection-end-line="656" />
387 508
         </state>
388 509
       </provider>
389 510
     </entry>
390 511
     <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
391
-      <provider selected="true" editor-type-id="text-editor">
392
-        <state relative-caret-position="0">
393
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
394
-          <folding />
395
-        </state>
396
-      </provider>
512
+      <provider selected="true" editor-type-id="text-editor" />
397 513
     </entry>
398
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
514
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
399 515
       <provider selected="true" editor-type-id="text-editor">
400
-        <state relative-caret-position="0">
401
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
402
-          <folding />
516
+        <state relative-caret-position="15">
517
+          <caret line="3" column="25" selection-start-column="7" selection-end-line="4" />
518
+          <folding>
519
+            <element signature="imports" expanded="true" />
520
+            <element signature="e#907#908#0" expanded="true" />
521
+            <element signature="e#965#966#0" expanded="true" />
522
+          </folding>
403 523
         </state>
404 524
       </provider>
405 525
     </entry>
406 526
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
407 527
       <provider selected="true" editor-type-id="text-editor">
408
-        <state relative-caret-position="34">
409
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
410
-          <folding />
411
-        </state>
412
-      </provider>
413
-    </entry>
414
-    <entry file="file://$PROJECT_DIR$/README.md">
415
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
416
-        <state split_layout="SPLIT">
417
-          <first_editor relative-caret-position="1241">
418
-            <caret line="73" column="0" lean-forward="true" selection-start-line="73" selection-start-column="0" selection-end-line="73" selection-end-column="0" />
419
-            <folding />
420
-          </first_editor>
421
-          <second_editor />
422
-        </state>
423
-      </provider>
424
-    </entry>
425
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
426
-      <provider selected="true" editor-type-id="text-editor">
427
-        <state relative-caret-position="0">
428
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
429
-          <folding />
528
+        <state relative-caret-position="565">
529
+          <caret line="515" column="27" selection-start-line="515" selection-start-column="27" selection-end-line="515" selection-end-column="27" />
530
+          <folding>
531
+            <element signature="imports" expanded="true" />
532
+          </folding>
430 533
         </state>
431 534
       </provider>
432 535
     </entry>
433 536
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
434 537
       <provider selected="true" editor-type-id="text-editor">
435
-        <state relative-caret-position="0">
436
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
437
-          <folding />
438
-        </state>
439
-      </provider>
440
-    </entry>
441
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
442
-      <provider selected="true" editor-type-id="text-editor">
443
-        <state relative-caret-position="34">
444
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
445
-          <folding />
538
+        <state relative-caret-position="492">
539
+          <caret line="306" selection-start-line="306" selection-end-line="306" />
540
+          <folding>
541
+            <element signature="imports" expanded="true" />
542
+            <element signature="e#2999#3008#0" expanded="true" />
543
+            <element signature="e#3647#3656#0" expanded="true" />
544
+            <element signature="e#3710#3719#0" expanded="true" />
545
+            <element signature="e#4092#4100#0" expanded="true" />
546
+            <element signature="e#4146#4154#0" expanded="true" />
547
+          </folding>
446 548
         </state>
447 549
       </provider>
448 550
     </entry>
449 551
     <entry file="file://$PROJECT_DIR$/README.md">
450 552
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
451 553
         <state split_layout="SPLIT">
452
-          <first_editor relative-caret-position="306">
453
-            <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
454
-            <folding />
554
+          <first_editor relative-caret-position="97">
555
+            <caret line="18" selection-start-line="18" selection-end-line="18" />
455 556
           </first_editor>
456 557
           <second_editor />
457 558
         </state>
@@ -460,6 +561,66 @@
460 561
   </component>
461 562
   <component name="masterDetails">
462 563
     <states>
564
+      <state key="ArtifactsStructureConfigurable.UI">
565
+        <settings>
566
+          <artifact-editor />
567
+          <splitter-proportions>
568
+            <option name="proportions">
569
+              <list>
570
+                <option value="0.2" />
571
+              </list>
572
+            </option>
573
+          </splitter-proportions>
574
+        </settings>
575
+      </state>
576
+      <state key="FacetStructureConfigurable.UI">
577
+        <settings>
578
+          <last-edited>No facets are configured</last-edited>
579
+          <splitter-proportions>
580
+            <option name="proportions">
581
+              <list>
582
+                <option value="0.2" />
583
+              </list>
584
+            </option>
585
+          </splitter-proportions>
586
+        </settings>
587
+      </state>
588
+      <state key="GlobalLibrariesConfigurable.UI">
589
+        <settings>
590
+          <splitter-proportions>
591
+            <option name="proportions">
592
+              <list>
593
+                <option value="0.2" />
594
+              </list>
595
+            </option>
596
+          </splitter-proportions>
597
+        </settings>
598
+      </state>
599
+      <state key="JdkListConfigurable.UI">
600
+        <settings>
601
+          <last-edited>1.8.0_192</last-edited>
602
+          <splitter-proportions>
603
+            <option name="proportions">
604
+              <list>
605
+                <option value="0.2" />
606
+              </list>
607
+            </option>
608
+          </splitter-proportions>
609
+        </settings>
610
+      </state>
611
+      <state key="ModuleStructureConfigurable.UI">
612
+        <settings>
613
+          <last-edited>ArraysGoneWild</last-edited>
614
+          <splitter-proportions>
615
+            <option name="proportions">
616
+              <list>
617
+                <option value="0.2" />
618
+                <option value="0.6" />
619
+              </list>
620
+            </option>
621
+          </splitter-proportions>
622
+        </settings>
623
+      </state>
463 624
       <state key="ProjectJDKs.UI">
464 625
         <settings>
465 626
           <last-edited>1.8</last-edited>
@@ -472,6 +633,18 @@
472 633
           </splitter-proportions>
473 634
         </settings>
474 635
       </state>
636
+      <state key="ProjectLibrariesConfigurable.UI">
637
+        <settings>
638
+          <last-edited>Maven: junit:junit:4.0</last-edited>
639
+          <splitter-proportions>
640
+            <option name="proportions">
641
+              <list>
642
+                <option value="0.2" />
643
+              </list>
644
+            </option>
645
+          </splitter-proportions>
646
+        </settings>
647
+      </state>
475 648
     </states>
476 649
   </component>
477 650
 </project>

+ 1
- 1
arraz/arraz.iml Näytä tiedosto

@@ -9,7 +9,7 @@
9 9
       <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10 10
       <excludeFolder url="file://$MODULE_DIR$/target" />
11 11
     </content>
12
-    <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
12
+    <orderEntry type="inheritedJdk" />
13 13
     <orderEntry type="sourceFolder" forTests="false" />
14 14
     <orderEntry type="library" name="Maven: junit:junit:4.0" level="project" />
15 15
   </component>

+ 306
- 0
arraz/src/main/java/Arraz.java Näytä tiedosto

@@ -1,2 +1,308 @@
1
+import java.io.UncheckedIOException;
2
+import java.util.*;
3
+
1 4
 public class Arraz {
5
+
6
+
7
+    public static int sumIntArray(int[] arr) {
8
+        int result = 0;
9
+        for (int number: arr) {
10
+            result += number;
11
+        }
12
+        return result;
13
+    }
14
+
15
+    public static double sumDoubleArray(double[] arr) {
16
+        double result = 0;
17
+        for (double number: arr) {
18
+            result += number;
19
+        }
20
+        return result;
21
+    }
22
+
23
+
24
+    public static int sumValuesOf2Array(int[] arr1, int[] arr2) {
25
+
26
+        int firstAmount = sumIntArray(arr1);
27
+
28
+        int secondAmount = sumIntArray(arr2);
29
+
30
+        int amount = firstAmount + secondAmount;
31
+
32
+        return amount;
33
+    }
34
+
35
+    public static double sumDoublesOf2Array(double[] arr1, double[] arr2) {
36
+
37
+        double firstAmount = sumDoubleArray(arr1);
38
+
39
+        double secondAmount = sumDoubleArray(arr2);
40
+
41
+        double amount = firstAmount + secondAmount;
42
+
43
+        return amount;
44
+
45
+    }
46
+
47
+
48
+    public static int averageOfArrays(int[] arr) {
49
+
50
+       return sumIntArray(arr)/arr.length;
51
+    }
52
+
53
+    public static double doubleAverageOfArrays(double[] arr) {
54
+        return sumDoubleArray(arr)/arr.length;
55
+    }
56
+
57
+
58
+    public static boolean containsValue(int[] arr, int number) {
59
+        for (int n : arr) {
60
+            if(number == n){
61
+                return true;
62
+            }
63
+        }
64
+                return false;
65
+    }
66
+
67
+    public static int[] reverseArray(int[] arr) {
68
+
69
+        for(int i = 0; i < arr.length/2; i++){
70
+            int temp = arr[i];
71
+
72
+            arr[i] = arr[arr.length-i-1];
73
+            arr[arr.length-i-1] = temp;
74
+        }
75
+
76
+        return arr;
77
+
78
+    }
79
+
80
+    public static OddEven getOddEvensOfArray(int[] arr){
81
+        int odd = 0;
82
+        int even = 0;
83
+
84
+        for(int i = 0; i < arr.length; i++){
85
+            if(arr[i] % 2 == 0){
86
+                even++;
87
+            }else {
88
+                odd++;
89
+            }
90
+        }
91
+
92
+        return new OddEven(even,odd);
93
+    }
94
+
95
+    public static int findIndexOf(int[] arr, int n) {
96
+
97
+        for(int i = 0; i <arr.length; i++){
98
+            if(arr[i] == n){
99
+                return i;
100
+            }
101
+        }return -1;
102
+
103
+
104
+    }
105
+
106
+    public static Integer[] copyArrayByIterator(Integer[] arr) {
107
+
108
+        Iterator<Integer> iterator = Arrays.asList(arr).iterator();
109
+        Integer[] newArr = new Integer[arr.length];
110
+        int i = 0;
111
+
112
+        while(iterator.hasNext()){
113
+            newArr[i] = iterator.next();
114
+            i++;
115
+        }
116
+        return newArr;
117
+    }
118
+
119
+    public static int[] copyArrayByLoop(int[] arr) {
120
+        int[] newArr = new int[arr.length];
121
+
122
+        for(int i = 0; i < arr.length; i++){
123
+            newArr[i] = arr[i];
124
+        }
125
+        return newArr;
126
+    }
127
+
128
+
129
+    public static int[] toIntArray(Integer[] array){
130
+        int[] ret = new int[array.length];
131
+        for(int i = 0; i < array.length;i++){
132
+            ret[i] = array[i];
133
+        }
134
+        return ret;
135
+    }
136
+
137
+
138
+    public static int[] removeElementFromArray(int[] arr, Integer number) {
139
+
140
+
141
+        ArrayList<Integer> list = new ArrayList<Integer>();
142
+
143
+        for(int n : arr){
144
+            list.add(n);
145
+        }
146
+
147
+        for(int m : arr) {
148
+            list.remove(new Integer(number));
149
+        }
150
+
151
+        Integer[] elementRemovedArray = list.toArray(new Integer[list.size()]);
152
+
153
+
154
+
155
+        return  toIntArray(elementRemovedArray );
156
+    }
157
+
158
+    public static int[] insertIntoArrayAt(int[] arr, int index, int number) {
159
+
160
+        int[] newArr = new int[arr.length+1];
161
+
162
+        for(int i = 0; i < arr.length; i++){
163
+
164
+            if(i == index){
165
+                arr[index] = number;
166
+            }
167
+            newArr[i] = arr[i];
168
+        }
169
+        return newArr;
170
+    }
171
+
172
+    public static MaxMin findMaxMinOfArray(int[] arr) {
173
+
174
+        Arrays.sort(arr);
175
+
176
+        int max = arr[arr.length-1];
177
+        int min = arr[0];
178
+
179
+        return new MaxMin(max,min);
180
+    }
181
+
182
+    public static Integer[] removeDupesFromArray(Integer[] arr) {
183
+
184
+
185
+        ArrayList<Integer> list = new ArrayList<Integer>();
186
+
187
+        HashSet<Integer> set = new HashSet<Integer>();
188
+
189
+        for(Integer n : arr){
190
+            list.add(n);
191
+        }
192
+
193
+        set.addAll(list);
194
+        list.clear();
195
+        list.addAll(set);
196
+
197
+
198
+        Integer[] array = list.toArray(new Integer[0]);
199
+
200
+        Arrays.sort(array);
201
+        return array;
202
+    }
203
+
204
+
205
+    public static double find2ndLargestValueFromArray(double[] arr) {
206
+
207
+        ArrayList<Double> list = new ArrayList<Double>();
208
+
209
+        HashSet<Double> set = new HashSet<Double>();
210
+
211
+        for(Double n : arr){
212
+            list.add(n);
213
+        }
214
+
215
+        set.addAll(list);
216
+        list.clear();
217
+        list.addAll(set);
218
+
219
+        Double[] array = list.toArray(new Double[0]);
220
+
221
+        Arrays.sort(array);
222
+
223
+
224
+        for (int i = 0 ; i < array.length; i++){
225
+            if(array[i] != array[i + i]){
226
+                return array[array.length-2];
227
+            }
228
+        }
229
+            return -1;
230
+    }
231
+
232
+
233
+    public static ArrayList makeMeAnArrayListFromArray(Object[] array) {
234
+
235
+        ArrayList arrayList = new ArrayList(Arrays.asList(array));
236
+
237
+        return arrayList;
238
+    }
239
+
240
+    public static Object[] makeMeAnArrayFromArrayList(ArrayList arrayList) {
241
+
242
+        Object[] arr = arrayList.toArray();
243
+
244
+        return arr;
245
+    }
246
+
247
+    public static boolean check2ArraysForEqual(Object[] arr1, Object[] arr2) {
248
+
249
+
250
+        int counter = 0;
251
+        for(int i = 0; i < arr1.length; i++){
252
+            for(int j = 0; j < arr2.length; j++){
253
+                if(arr1[i] == arr2[j]){
254
+                    counter++;
255
+                }
256
+            }
257
+        }
258
+        if(counter == arr1.length && counter == arr2.length){
259
+            return true;
260
+        }
261
+        return false;
262
+    }
263
+
264
+    public static int averageArrayWithoutMaxMin(int[] array) {
265
+
266
+        MaxMin maxMin = findMaxMinOfArray(array);
267
+
268
+        int max = maxMin.getMax();
269
+        int min = maxMin.getMin();
270
+
271
+
272
+
273
+        int[] arrayWithoutMax = removeElementFromArray(array,max);
274
+
275
+        int[] arrayWithoutBoth = removeElementFromArray(arrayWithoutMax,min);
276
+
277
+
278
+
279
+        return averageOfArrays(arrayWithoutBoth);
280
+    }
281
+
282
+    public static boolean arrayHas65and77(int[] array){
283
+        int counter = 0;
284
+
285
+        if(containsValue(array,65) && containsValue(array, 77)){
286
+            return true;
287
+        }
288
+
289
+//        if(containsValue(array,77)){
290
+//            counter++;
291
+//        }
292
+//        for (int i = 0 ; i < array.length; i++){
293
+//            if(array[i] == 65){
294
+//                counter++;
295
+//            }
296
+//            else if(array[i] == 77){
297
+//                counter++;
298
+//            }
299
+//        }
300
+
301
+//        if(counter >= 2){
302
+//            return true;
303
+//        }
304
+        return false;
305
+    }
306
+
307
+
2 308
 }

+ 44
- 0
arraz/src/main/java/MaxMin.java Näytä tiedosto

@@ -0,0 +1,44 @@
1
+import java.util.Objects;
2
+
3
+public class MaxMin {
4
+    public int max;
5
+    public int min;
6
+
7
+    public MaxMin() {
8
+    }
9
+
10
+    public MaxMin(int max, int min) {
11
+        this.max = max;
12
+        this.min = min;
13
+    }
14
+
15
+    public int getMax() {
16
+        return max;
17
+    }
18
+
19
+    public void setMax(int max) {
20
+        this.max = max;
21
+    }
22
+
23
+    public int getMin() {
24
+        return min;
25
+    }
26
+
27
+    public void setMin(int min) {
28
+        this.min = min;
29
+    }
30
+
31
+    @Override
32
+    public boolean equals(Object o) {
33
+        if (this == o) return true;
34
+        if (!(o instanceof MaxMin)) return false;
35
+        MaxMin maxMin = (MaxMin) o;
36
+        return getMax() == maxMin.getMax() &&
37
+                getMin() == maxMin.getMin();
38
+    }
39
+
40
+    @Override
41
+    public int hashCode() {
42
+        return Objects.hash(getMax(), getMin());
43
+    }
44
+}

+ 49
- 0
arraz/src/main/java/OddEven.java Näytä tiedosto

@@ -0,0 +1,49 @@
1
+import javax.xml.bind.annotation.XmlType;
2
+import java.lang.reflect.Array;
3
+import java.util.ArrayList;
4
+import java.util.Objects;
5
+
6
+public class OddEven {
7
+    public int evens;
8
+    public int odds;
9
+
10
+    public OddEven(int evens, int odds) {
11
+        this.evens = evens;
12
+        this.odds = odds;
13
+    }
14
+
15
+    public OddEven() {
16
+    }
17
+
18
+    public int getEvens() {
19
+        return evens;
20
+    }
21
+
22
+    public void setEvens(int evens) {
23
+        this.evens = evens;
24
+    }
25
+
26
+    public int getOdds() {
27
+        return odds;
28
+    }
29
+
30
+    public void setOdds(int odds) {
31
+        this.odds = odds;
32
+    }
33
+
34
+    @Override
35
+    public boolean equals(Object o) {
36
+        if (this == o) return true;
37
+        if (!(o instanceof OddEven)) return false;
38
+        OddEven oddEven = (OddEven) o;
39
+        return getEvens() == oddEven.getEvens() &&
40
+                getOdds() == oddEven.getOdds();
41
+    }
42
+
43
+    @Override
44
+    public int hashCode() {
45
+        return Objects.hash(getEvens(), getOdds());
46
+    }
47
+
48
+
49
+}

+ 515
- 1
arraz/src/test/java/ArrazTest.java Näytä tiedosto

@@ -1,5 +1,519 @@
1
-import static org.junit.Assert.*;
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+import java.util.ArrayList;
2 5
 
3 6
 public class ArrazTest {
4 7
 
8
+    @Test
9
+    public void testSumIntArray(){
10
+        int[] arr = {1,2,3};
11
+
12
+        int expected = 6;
13
+        int actual = Arraz.sumIntArray(arr);
14
+
15
+        Assert.assertEquals(expected,actual,.01);
16
+    }
17
+
18
+    @Test
19
+    public void testSumDoubleArray(){
20
+        double[] arr = {1.1,2.2,3.3};
21
+
22
+        double expected = 6.6;
23
+        double actual = Arraz.sumDoubleArray(arr);
24
+
25
+        Assert.assertEquals(expected,actual,.01);
26
+    }
27
+
28
+    @Test
29
+    public void test1sumValuesOfArray(){
30
+        int[] arr1 = {1,2,3,4,5};
31
+        int[] arr2 = {2,3,4,5,6};
32
+
33
+        int actual = Arraz.sumValuesOf2Array(arr1,arr2);
34
+
35
+        int expected = 35;
36
+
37
+        Assert.assertEquals(expected,actual,.01);
38
+
39
+    }
40
+
41
+    @Test
42
+    public void test2sumValuesOfArray(){
43
+        int[] arr1 = {3,3,3};
44
+        int[] arr2 = {4,4,4};
45
+
46
+        int actual = Arraz.sumValuesOf2Array(arr1,arr2);
47
+        int expected = 21;
48
+
49
+        Assert.assertEquals(actual,expected,.01);
50
+    }
51
+
52
+    @Test
53
+    public void test1sumDoublesOfArray(){
54
+        double[] arr1 = {1.1,2.2,3.3};
55
+        double[] arr2 = {4.4,5.5,6.6};
56
+
57
+        double expected = 23.1;
58
+        double actual = Arraz.sumDoublesOf2Array(arr1,arr2);
59
+
60
+        Assert.assertEquals(expected,actual,.01);
61
+    }
62
+
63
+
64
+    @Test
65
+    public void test2sumDoublesOfArray(){
66
+        double[] arr1 = {7.7,8.8,9.9};
67
+        double[] arr2 = {10.1,11.11,12.12};
68
+
69
+        double expected = 59.73;
70
+        double actual = Arraz.sumDoublesOf2Array(arr1,arr2);
71
+
72
+        Assert.assertEquals(expected,actual,.01);
73
+    }
74
+
75
+    @Test
76
+    public void test1averageOfArrays(){
77
+        int[] arr = {1,2,3,4,5};
78
+
79
+        double expected = 3;
80
+        double actual = Arraz.averageOfArrays(arr);
81
+
82
+        Assert.assertEquals(expected,actual,.01);
83
+    }
84
+
85
+    @Test
86
+    public void test2averageOfArrays(){
87
+        int[] arr = {6,7,8,9,10};
88
+
89
+        int expected = 8;
90
+        int actual = Arraz.averageOfArrays(arr);
91
+
92
+        Assert.assertEquals(expected,actual,.01);
93
+    }
94
+
95
+    @Test
96
+    public void test1doubleAverageOfArrays(){
97
+        double[] arr = {1.1,2.2,3.3};
98
+
99
+        double expected = 2.2;
100
+        double actual = Arraz.doubleAverageOfArrays(arr);
101
+
102
+        Assert.assertEquals(expected,actual,.01);
103
+    }
104
+
105
+    @Test
106
+    public void test2doubleAverageOfArrays(){
107
+        double[] arr = {4.4,5.5,6.6};
108
+
109
+        double expected = 5.5;
110
+        double actual = Arraz.doubleAverageOfArrays(arr);
111
+
112
+        Assert.assertEquals(expected,actual,.01);
113
+    }
114
+
115
+    @Test
116
+    public void test1containsValue(){
117
+        int[] arr = {1,2,3,4,5};
118
+        int number = 5;
119
+
120
+
121
+        boolean actual = Arraz.containsValue(arr,number);
122
+
123
+        Assert.assertTrue(actual);
124
+    }
125
+
126
+    @Test
127
+    public void test2containsValue(){
128
+        int[] arr = {1,2,3,4,5};
129
+        int number = 6;
130
+
131
+
132
+        boolean actual = Arraz.containsValue(arr,number);
133
+
134
+        Assert.assertFalse(actual);
135
+    }
136
+
137
+    @Test
138
+    public void test1reverseArray(){
139
+        int[] arr = {1,2,3,4,5,6};
140
+
141
+        int[] expected = {6,5,4,3,2,1};
142
+        int[] actual = Arraz.reverseArray(arr);
143
+
144
+        Assert.assertEquals(expected[0],actual[0]);
145
+
146
+
147
+
148
+    }
149
+
150
+    @Test
151
+    public void test2reverseArray(){
152
+        int[] arr = {1,2,3,4,5,6};
153
+
154
+        int[] expected = {6,5,4,3,2,1};
155
+        int[] actual = Arraz.reverseArray(arr);
156
+
157
+        Assert.assertEquals(expected[4],actual[4]);
158
+
159
+
160
+
161
+    }
162
+
163
+    @Test
164
+    public void test1getOddEvensOfArray(){
165
+
166
+
167
+        int[] arr = {1,2,3,4,6};
168
+
169
+        OddEven expected = new OddEven(3,2);
170
+
171
+        OddEven actual = Arraz.getOddEvensOfArray(arr);
172
+
173
+        Assert.assertEquals(expected,actual);
174
+
175
+    }
176
+
177
+    @Test
178
+    public void test2getOddEvensOfArray(){
179
+
180
+
181
+        int[] arr = {1,5,3,4,7};
182
+
183
+        OddEven expected = new OddEven(1,4);
184
+
185
+        OddEven actual = Arraz.getOddEvensOfArray(arr);
186
+
187
+        Assert.assertEquals(expected,actual);
188
+
189
+    }
190
+
191
+    @Test
192
+    public void test1findIndexOf(){
193
+        int[] arr = {1,2,3,4,5};
194
+
195
+        int expected = 1;
196
+
197
+        int actual = Arraz.findIndexOf(arr, 2);
198
+
199
+        Assert.assertEquals(expected,actual,.01);
200
+    }
201
+
202
+    @Test
203
+    public void test2findIndexOf(){
204
+        int[] arr = {1,2,3,4,5};
205
+
206
+        int expected = -1;
207
+
208
+        int actual = Arraz.findIndexOf(arr, 6);
209
+
210
+        Assert.assertEquals(expected,actual,.01);
211
+    }
212
+
213
+    @Test
214
+    public void test1copyArrayByIterator(){
215
+        Integer[] arr = {1,2,3,4,5};
216
+
217
+        Integer[] expected = {1,2,3,4,5};
218
+
219
+        Integer[] actual = Arraz.copyArrayByIterator(arr);
220
+
221
+        Assert.assertEquals(expected,actual);
222
+    }
223
+
224
+    @Test
225
+    public void test2copyArrayByIterator(){
226
+        Integer[] arr = {1,2,3,4,5,6,7,8,9};
227
+
228
+        Integer[] expected = {1,2,3,4,5,6,7,8,9};
229
+
230
+        Integer[] actual = Arraz.copyArrayByIterator(arr);
231
+
232
+        Assert.assertEquals(expected,actual);
233
+    }
234
+
235
+    @Test
236
+    public void test1copyArrayByLoop(){
237
+        int[] arr = {1,2,3,4,5};
238
+
239
+        int[] expected = {1,2,3,4,5};
240
+        int[] actual = Arraz.copyArrayByLoop(arr);
241
+
242
+        Assert.assertEquals(expected[1],actual[1]);
243
+    }
244
+
245
+    @Test
246
+    public void test2copyArrayByLoop(){
247
+        int[] arr = {11,2,10,4,5};
248
+
249
+        int[] expected = {11,2,10,4,5};
250
+        int[] actual = Arraz.copyArrayByLoop(arr);
251
+
252
+        Assert.assertEquals(expected[1],actual[1]);
253
+        Assert.assertEquals(expected[2],actual[2]);
254
+        Assert.assertEquals(expected[4],actual[4]);
255
+
256
+    }
257
+
258
+    @Test
259
+    public void test1removeElementFromArray(){
260
+        int[] arr =  {1,2,3,4,5};
261
+
262
+        int[] expected = {1,2,4,5};
263
+        int[] actual = Arraz.removeElementFromArray(arr,3);
264
+
265
+
266
+        Assert.assertEquals(expected[1],actual[1]);
267
+        Assert.assertEquals(expected[2],actual[2]);
268
+        Assert.assertEquals(expected[3],actual[3]);
269
+        Assert.assertEquals(expected[0],actual[0]);
270
+
271
+    }
272
+
273
+    @Test
274
+    public void test2removeElementFromArray(){
275
+        int[] arr =  {5,4,3,2,1};
276
+
277
+        int[] expected = {5,3,2,1};
278
+        int[] actual = Arraz.removeElementFromArray(arr,4);
279
+
280
+        Assert.assertEquals(expected[1],actual[1]);
281
+        Assert.assertEquals(expected[2],actual[2]);
282
+        Assert.assertEquals(expected[3],actual[3]);
283
+        Assert.assertEquals(expected[0],actual[0]);
284
+
285
+    }
286
+
287
+    @Test
288
+    public void test1insertIntoArrayAt(){
289
+        int[] arr = {1,2,3,5,6};
290
+
291
+        int[] expected = {1,2,3,4,6};
292
+        int[] actual = Arraz.insertIntoArrayAt(arr,3,4);
293
+
294
+        Assert.assertEquals(expected[3], actual[3]);
295
+        Assert.assertEquals(expected[1], actual[1]);
296
+        Assert.assertEquals(expected[2], actual[2]);
297
+        Assert.assertEquals(expected[4], actual[4]);
298
+
299
+    }
300
+
301
+    @Test
302
+    public void test2insertIntoArrayAt(){
303
+        int[] arr = {10,20,30,50,60};
304
+
305
+        int[] expected = {10,20,30,40,60};
306
+        int[] actual = Arraz.insertIntoArrayAt(arr,3,40);
307
+
308
+        Assert.assertEquals(expected[3], actual[3]);
309
+        Assert.assertEquals(expected[1], actual[1]);
310
+        Assert.assertEquals(expected[2], actual[2]);
311
+        Assert.assertEquals(expected[4], actual[4]);
312
+
313
+    }
314
+
315
+    @Test
316
+    public void test1findMaxMinOfArray(){
317
+        int[] arr = {3,6,8,2,1};
318
+
319
+        MaxMin expected = new MaxMin(8,1);
320
+        MaxMin actual = Arraz.findMaxMinOfArray(arr);
321
+
322
+        Assert.assertEquals(expected,actual);
323
+    }
324
+
325
+    @Test
326
+    public void test2findMaxMinOfArray(){
327
+        int[] arr = {34,16,18,2,11,16,34,2,1,1};
328
+
329
+        MaxMin expected = new MaxMin(34,1);
330
+        MaxMin actual = Arraz.findMaxMinOfArray(arr);
331
+
332
+        Assert.assertEquals(expected,actual);
333
+    }
334
+
335
+    @Test
336
+    public void test1removeDupesFromArray(){
337
+        Integer[] arr = {34,16,18,2,11,16,34,2,1,1};
338
+
339
+        Integer[] expected = {1,2,11,16,18,34};
340
+        Integer[] actual = Arraz.removeDupesFromArray(arr);
341
+
342
+        Assert.assertEquals(expected,actual);
343
+
344
+    }
345
+
346
+    @Test
347
+    public void test2removeDupesFromArray(){
348
+        Integer[] arr = {32,26,28,21,21,26,32,2,1,1};
349
+
350
+        Integer[] expected = {1,2,21,26,28,32};
351
+        Integer[] actual = Arraz.removeDupesFromArray(arr);
352
+
353
+        Assert.assertEquals(expected,actual);
354
+
355
+    }
356
+
357
+    @Test
358
+    public void test1find2ndLargestValueFromArray(){
359
+        double[] arr = {1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8,9.9,10.1};
360
+
361
+        double expected = 9.9;
362
+        double actual = Arraz.find2ndLargestValueFromArray(arr);
363
+
364
+        Assert.assertEquals(expected,actual);
365
+
366
+    }
367
+
368
+    @Test
369
+    public void test2find2ndLargestValueFromArray(){
370
+        double[] arr = {2.2,3.4,5.6,2.1,3.3,3.4,5.6};
371
+
372
+        double expected = 3.4;
373
+        double actual = Arraz.find2ndLargestValueFromArray(arr);
374
+
375
+        Assert.assertEquals(expected,actual);
376
+
377
+    }
378
+
379
+    @Test
380
+    public void test1makeMeAnArrayListFromArray(){
381
+        Object[] array = {1,2,3,4,5,6};
382
+
383
+
384
+        int expected = array.length;
385
+        ArrayList arrayList = Arraz.makeMeAnArrayListFromArray(array);
386
+
387
+        int actual = arrayList.size();
388
+
389
+        Assert.assertEquals(expected,actual);
390
+    }
391
+
392
+    @Test
393
+    public void test2makeMeAnArrayListFromArray(){
394
+        Object[] array = {1,2,3,5,6};
395
+
396
+
397
+        int expected = array.length;
398
+        ArrayList arrayList = Arraz.makeMeAnArrayListFromArray(array);
399
+
400
+        int actual = arrayList.size();
401
+
402
+        Assert.assertEquals(expected,actual);
403
+    }
404
+
405
+    @Test
406
+    public void test1makeMeAnArrayFromArrayList(){
407
+
408
+        ArrayList arrayList = new ArrayList();
409
+        arrayList.add(5);
410
+        arrayList.add(4);
411
+        arrayList.add(6);
412
+        arrayList.add(7);
413
+
414
+
415
+        Object[] array = Arraz.makeMeAnArrayFromArrayList(arrayList);
416
+
417
+        int expected = arrayList.size();
418
+        int actual = array.length;
419
+
420
+        Assert.assertEquals(expected,actual);
421
+    }
422
+
423
+    @Test
424
+    public void test2makeMeAnArrayFromArrayList(){
425
+
426
+        ArrayList arrayList = new ArrayList();
427
+        arrayList.add(5);
428
+        arrayList.add(4);
429
+        arrayList.add(6);
430
+        arrayList.add(7);
431
+        arrayList.add(6);
432
+        arrayList.add(6);
433
+        arrayList.add(6);
434
+        arrayList.add(6);
435
+
436
+
437
+
438
+
439
+        Object[] array = Arraz.makeMeAnArrayFromArrayList(arrayList);
440
+
441
+        int expected = arrayList.size();
442
+        int actual = array.length;
443
+
444
+        Assert.assertEquals(expected,actual);
445
+    }
446
+
447
+    @Test
448
+    public void test1check2ArraysForEqual(){
449
+
450
+        Object[] arr1 = {1,2,3,4,5};
451
+        Object[] arr2 = {1,2,3,4,5};
452
+
453
+
454
+
455
+       boolean actual = Arraz.check2ArraysForEqual(arr1,arr2);
456
+
457
+       Assert.assertTrue(actual);
458
+    }
459
+
460
+    @Test
461
+    public void test2check2ArraysForEqual(){
462
+
463
+        Object[] arr1 = {1,2,3,4,5};
464
+        Object[] arr2 = {1,2,3,4,5,6};
465
+
466
+
467
+
468
+        boolean actual = Arraz.check2ArraysForEqual(arr1,arr2);
469
+
470
+        Assert.assertFalse(actual);
471
+    }
472
+
473
+    @Test
474
+    public void test1averageArrayWithoutMaxMin(){
475
+
476
+        int[] array = {2,4,6,8,10};
477
+
478
+        int expected = 6;
479
+        int actual = Arraz.averageArrayWithoutMaxMin(array);
480
+
481
+        Assert.assertEquals(expected,actual);
482
+    }
483
+
484
+    @Test
485
+    public void test2averageArrayWithoutMaxMin(){
486
+
487
+        int[] array = {2,2,2,2,2,2,4,6,8,10,10,10,10,10};
488
+
489
+        int average = Arraz.averageOfArrays(array);
490
+        int sum = Arraz.sumIntArray(array);
491
+
492
+        int expected = 6;
493
+        int actual = Arraz.averageArrayWithoutMaxMin(array);
494
+
495
+        Assert.assertEquals(expected,actual);
496
+    }
497
+
498
+    @Test
499
+    public void test1arrayHas65and77(){
500
+
501
+        int[] array = {1,2,3,55,65,77,100};
502
+
503
+        boolean has65and77 = Arraz.arrayHas65and77(array);
504
+
505
+        Assert.assertTrue(has65and77);
506
+
507
+    }
508
+
509
+    @Test
510
+    public void test2arrayHas65and77(){
511
+
512
+        int[] array = {1,2,3,55,77,100};
513
+
514
+        boolean has65and77 = Arraz.arrayHas65and77(array);
515
+
516
+        Assert.assertFalse(has65and77);
517
+
518
+    }
5 519
 }