De'Jon Johnson преди 6 години
родител
ревизия
f9b6be8527

+ 0
- 13
.idea/libraries/Maven__junit_junit_4_0.xml Целия файл

1
-<component name="libraryTable">
2
-  <library name="Maven: junit:junit:4.0">
3
-    <CLASSES>
4
-      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/" />
5
-    </CLASSES>
6
-    <JAVADOC>
7
-      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-javadoc.jar!/" />
8
-    </JAVADOC>
9
-    <SOURCES>
10
-      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-sources.jar!/" />
11
-    </SOURCES>
12
-  </library>
13
-</component>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Целия файл

1
+<component name="libraryTable">
2
+  <library name="Maven: junit:junit:4.12">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml Целия файл

1
+<component name="libraryTable">
2
+  <library name="Maven: org.hamcrest:hamcrest-core:1.3">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 323
- 223
.idea/workspace.xml Целия файл

1
 <?xml version="1.0" encoding="UTF-8"?>
1
 <?xml version="1.0" encoding="UTF-8"?>
2
 <project version="4">
2
 <project version="4">
3
+  <component name="BookmarkManager">
4
+    <bookmark url="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" line="166" mnemonic="9" />
5
+  </component>
3
   <component name="ChangeListManager">
6
   <component name="ChangeListManager">
4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
7
     <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" />
8
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_12.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" afterDir="false" />
11
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_0.xml" beforeDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/arraz/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/arraz.iml" afterDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/arraz/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/pom.xml" afterDir="false" />
16
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
17
+      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7
     </list>
18
     </list>
8
     <ignored path="$PROJECT_DIR$/arraz/target/" />
19
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
20
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
-    <option name="TRACKING_ENABLED" value="true" />
11
     <option name="SHOW_DIALOG" value="false" />
21
     <option name="SHOW_DIALOG" value="false" />
12
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
22
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
13
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
23
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14
     <option name="LAST_RESOLUTION" value="IGNORE" />
24
     <option name="LAST_RESOLUTION" value="IGNORE" />
15
   </component>
25
   </component>
26
+  <component name="FUSProjectUsageTrigger">
27
+    <session id="-1256169622">
28
+      <usages-collector id="statistics.lifecycle.project">
29
+        <counts>
30
+          <entry key="project.closed" value="2" />
31
+          <entry key="project.open.time.1" value="1" />
32
+          <entry key="project.open.time.3" value="1" />
33
+          <entry key="project.open.time.8" value="1" />
34
+          <entry key="project.opened" value="3" />
35
+        </counts>
36
+      </usages-collector>
37
+      <usages-collector id="statistics.file.extensions.open">
38
+        <counts>
39
+          <entry key="class" value="1" />
40
+          <entry key="java" value="27" />
41
+          <entry key="md" value="33" />
42
+          <entry key="xml" value="1" />
43
+        </counts>
44
+      </usages-collector>
45
+      <usages-collector id="statistics.file.types.open">
46
+        <counts>
47
+          <entry key="CLASS" value="1" />
48
+          <entry key="JAVA" value="27" />
49
+          <entry key="Markdown" value="33" />
50
+          <entry key="XML" value="1" />
51
+        </counts>
52
+      </usages-collector>
53
+      <usages-collector id="statistics.file.extensions.edit">
54
+        <counts>
55
+          <entry key="java" value="15176" />
56
+          <entry key="xml" value="2" />
57
+        </counts>
58
+      </usages-collector>
59
+      <usages-collector id="statistics.file.types.edit">
60
+        <counts>
61
+          <entry key="JAVA" value="15176" />
62
+          <entry key="XML" value="2" />
63
+        </counts>
64
+      </usages-collector>
65
+    </session>
66
+  </component>
16
   <component name="FileEditorManager">
67
   <component name="FileEditorManager">
17
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
68
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
18
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
19
-        <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
69
+      <file pinned="false" current-in-tab="true">
70
+        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
20
           <provider selected="true" editor-type-id="text-editor">
71
           <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 />
72
+            <state relative-caret-position="2076">
73
+              <caret line="271" lean-forward="true" selection-start-line="271" selection-end-line="271" />
24
             </state>
74
             </state>
25
           </provider>
75
           </provider>
26
         </entry>
76
         </entry>
27
       </file>
77
       </file>
28
-      <file leaf-file-name="Arraz.java" pinned="false" current-in-tab="false">
29
-        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
78
+      <file pinned="false" current-in-tab="false">
79
+        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
30
           <provider selected="true" editor-type-id="text-editor">
80
           <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 />
81
+            <state relative-caret-position="90">
82
+              <caret line="6" column="34" selection-start-line="6" selection-start-column="34" selection-end-line="6" selection-end-column="34" />
34
             </state>
83
             </state>
35
           </provider>
84
           </provider>
36
         </entry>
85
         </entry>
37
       </file>
86
       </file>
38
-      <file leaf-file-name="ArrazTest.java" pinned="false" current-in-tab="false">
87
+      <file pinned="false" current-in-tab="false">
39
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
88
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
40
           <provider selected="true" editor-type-id="text-editor">
89
           <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 />
44
-            </state>
45
-          </provider>
46
-        </entry>
47
-      </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 />
90
+            <state relative-caret-position="-6507">
91
+              <caret line="425" lean-forward="true" selection-start-line="425" selection-end-line="425" />
92
+              <folding>
93
+                <element signature="imports" expanded="true" />
94
+              </folding>
57
             </state>
95
             </state>
58
           </provider>
96
           </provider>
59
         </entry>
97
         </entry>
63
   <component name="FileTemplateManagerImpl">
101
   <component name="FileTemplateManagerImpl">
64
     <option name="RECENT_TEMPLATES">
102
     <option name="RECENT_TEMPLATES">
65
       <list>
103
       <list>
66
-        <option value="Class" />
67
         <option value="JUnit4 Test Class" />
104
         <option value="JUnit4 Test Class" />
105
+        <option value="Class" />
68
       </list>
106
       </list>
69
     </option>
107
     </option>
70
   </component>
108
   </component>
72
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
110
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73
   </component>
111
   </component>
74
   <component name="GradleLocalSettings">
112
   <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78
     <option name="projectSyncType">
113
     <option name="projectSyncType">
79
       <map>
114
       <map>
80
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
115
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
84
   <component name="IdeDocumentHistory">
119
   <component name="IdeDocumentHistory">
85
     <option name="CHANGED_PATHS">
120
     <option name="CHANGED_PATHS">
86
       <list>
121
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88
         <option value="$PROJECT_DIR$/README.md" />
122
         <option value="$PROJECT_DIR$/README.md" />
123
+        <option value="$PROJECT_DIR$/arraz/pom.xml" />
124
+        <option value="$PROJECT_DIR$/arraz/src/main/java/getOddEven.java" />
125
+        <option value="$PROJECT_DIR$/arraz/src/test/java/OddEvenTest.java" />
126
+        <option value="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" />
127
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
128
+        <option value="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" />
129
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
89
       </list>
130
       </list>
90
     </option>
131
     </option>
91
   </component>
132
   </component>
102
       </MavenImportingSettings>
143
       </MavenImportingSettings>
103
     </option>
144
     </option>
104
   </component>
145
   </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" />
146
+  <component name="ProjectFrameBounds" fullScreen="true">
147
+    <option name="y" value="23" />
148
+    <option name="width" value="1440" />
149
+    <option name="height" value="823" />
110
   </component>
150
   </component>
111
   <component name="ProjectView">
151
   <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 />
152
+    <navigator proportions="" version="1">
123
       <foldersAlwaysOnTop value="true" />
153
       <foldersAlwaysOnTop value="true" />
124
     </navigator>
154
     </navigator>
125
     <panes>
155
     <panes>
156
+      <pane id="Scope" />
126
       <pane id="ProjectPane">
157
       <pane id="ProjectPane">
127
         <subPane>
158
         <subPane>
128
           <expand>
159
           <expand>
151
             <path>
182
             <path>
152
               <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
183
               <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
153
               <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
184
               <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
185
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
186
+              <item name="src" type="462c0819:PsiDirectoryNode" />
187
+              <item name="main" type="462c0819:PsiDirectoryNode" />
188
+              <item name="java" type="462c0819:PsiDirectoryNode" />
189
+            </path>
190
+            <path>
191
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
192
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
193
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
194
+              <item name="src" type="462c0819:PsiDirectoryNode" />
195
+              <item name="test" type="462c0819:PsiDirectoryNode" />
196
+            </path>
197
+            <path>
198
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
199
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
200
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
201
+              <item name="src" type="462c0819:PsiDirectoryNode" />
202
+              <item name="test" type="462c0819:PsiDirectoryNode" />
203
+              <item name="java" type="462c0819:PsiDirectoryNode" />
204
+            </path>
205
+            <path>
206
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
207
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
154
               <item name="DocumentationOnArrays" type="462c0819:PsiDirectoryNode" />
208
               <item name="DocumentationOnArrays" type="462c0819:PsiDirectoryNode" />
155
             </path>
209
             </path>
210
+            <path>
211
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
212
+              <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
213
+            </path>
156
           </expand>
214
           </expand>
157
           <select />
215
           <select />
158
         </subPane>
216
         </subPane>
159
       </pane>
217
       </pane>
160
-      <pane id="Scratches" />
161
       <pane id="PackagesPane" />
218
       <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163
-      <pane id="Scope" />
164
     </panes>
219
     </panes>
165
   </component>
220
   </component>
166
   <component name="PropertiesComponent">
221
   <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" />
222
+    <property name="GO_FMT" value="false" />
169
     <property name="WebServerToolWindowFactoryState" value="false" />
223
     <property name="WebServerToolWindowFactoryState" value="false" />
170
     <property name="aspect.path.notification.shown" value="true" />
224
     <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" />
225
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544642884621" />
173
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
226
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
227
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
228
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
229
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
230
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
175
   </component>
231
   </component>
176
   <component name="RecentsManager">
232
   <component name="RecentsManager">
177
     <key name="CreateTestDialog.RecentsKey">
233
     <key name="CreateTestDialog.RecentsKey">
193
       </list>
249
       </list>
194
     </option>
250
     </option>
195
   </component>
251
   </component>
196
-  <component name="RunManager">
252
+  <component name="RunManager" selected="JUnit.ArrazTest.testFindMaxMinOfArray">
197
     <configuration default="true" type="Applet" factoryName="Applet">
253
     <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
200
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
254
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
255
+      <method v="2">
256
+        <option name="Make" enabled="true" />
257
+      </method>
202
     </configuration>
258
     </configuration>
203
     <configuration default="true" type="Application" factoryName="Application">
259
     <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
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
260
       <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 />
261
+      <method v="2">
262
+        <option name="Make" enabled="true" />
263
+      </method>
216
     </configuration>
264
     </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" />
265
+    <configuration name="ArrazTest.sortArrayIntoEvensThenOdds" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
266
+      <module name="arraz" />
267
+      <option name="PACKAGE_NAME" value="" />
268
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
269
+      <option name="METHOD_NAME" value="sortArrayIntoEvensThenOdds" />
270
+      <option name="TEST_OBJECT" value="method" />
228
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
271
       <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 />
272
+      <method v="2">
273
+        <option name="Make" enabled="true" />
274
+      </method>
236
     </configuration>
275
     </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" />
276
+    <configuration name="ArrazTest.sortArrayIntoEvensThenOdds2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
277
+      <module name="arraz" />
278
+      <option name="PACKAGE_NAME" value="" />
279
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
280
+      <option name="METHOD_NAME" value="sortArrayIntoEvensThenOdds2" />
281
+      <option name="TEST_OBJECT" value="method" />
282
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
283
+      <method v="2">
284
+        <option name="Make" enabled="true" />
285
+      </method>
286
+    </configuration>
287
+    <configuration name="ArrazTest.sortArrayIntoEvensThenOddsPt2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
288
+      <module name="arraz" />
289
+      <option name="PACKAGE_NAME" value="" />
290
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
291
+      <option name="METHOD_NAME" value="sortArrayIntoEvensThenOddsPt2" />
292
+      <option name="TEST_OBJECT" value="method" />
293
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
294
+      <method v="2">
295
+        <option name="Make" enabled="true" />
296
+      </method>
297
+    </configuration>
298
+    <configuration name="ArrazTest.testFindMaxMinOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
299
+      <module name="arraz" />
300
+      <option name="PACKAGE_NAME" value="" />
301
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
302
+      <option name="METHOD_NAME" value="testFindMaxMinOfArray" />
303
+      <option name="TEST_OBJECT" value="method" />
304
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
305
+      <method v="2">
306
+        <option name="Make" enabled="true" />
307
+      </method>
308
+    </configuration>
309
+    <configuration name="ArrazTest.testInsertAtEndAndCopyPt2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
310
+      <module name="arraz" />
311
+      <option name="PACKAGE_NAME" value="" />
312
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
313
+      <option name="METHOD_NAME" value="testInsertAtEndAndCopyPt2" />
314
+      <option name="TEST_OBJECT" value="method" />
315
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
316
+      <method v="2">
317
+        <option name="Make" enabled="true" />
318
+      </method>
319
+    </configuration>
320
+    <configuration default="true" type="JUnit" factoryName="JUnit">
321
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
322
+      <method v="2">
323
+        <option name="Make" enabled="true" />
324
+      </method>
243
     </configuration>
325
     </configuration>
244
     <configuration default="true" type="TestNG" factoryName="TestNG">
326
     <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" />
257
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
327
       <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
       <properties />
328
       <properties />
269
       <listeners />
329
       <listeners />
330
+      <method v="2">
331
+        <option name="Make" enabled="true" />
332
+      </method>
270
     </configuration>
333
     </configuration>
271
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
334
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
272
       <module name="" />
335
       <module name="" />
273
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
336
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274
       <option name="PROGRAM_PARAMETERS" />
337
       <option name="PROGRAM_PARAMETERS" />
275
       <predefined_log_file id="idea.log" enabled="true" />
338
       <predefined_log_file id="idea.log" enabled="true" />
339
+      <method v="2">
340
+        <option name="Make" enabled="true" />
341
+      </method>
276
     </configuration>
342
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
343
+    <list>
344
+      <item itemvalue="JUnit.ArrazTest.testInsertAtEndAndCopyPt2" />
345
+      <item itemvalue="JUnit.ArrazTest.sortArrayIntoEvensThenOdds" />
346
+      <item itemvalue="JUnit.ArrazTest.sortArrayIntoEvensThenOdds2" />
347
+      <item itemvalue="JUnit.ArrazTest.sortArrayIntoEvensThenOddsPt2" />
348
+      <item itemvalue="JUnit.ArrazTest.testFindMaxMinOfArray" />
349
+    </list>
350
+    <recent_temporary>
351
+      <list>
352
+        <item itemvalue="JUnit.ArrazTest.testFindMaxMinOfArray" />
353
+        <item itemvalue="JUnit.ArrazTest.sortArrayIntoEvensThenOddsPt2" />
354
+        <item itemvalue="JUnit.ArrazTest.sortArrayIntoEvensThenOdds" />
355
+        <item itemvalue="JUnit.ArrazTest.sortArrayIntoEvensThenOdds2" />
356
+        <item itemvalue="JUnit.ArrazTest.testInsertAtEndAndCopyPt2" />
357
+      </list>
358
+    </recent_temporary>
280
   </component>
359
   </component>
281
   <component name="SvnConfiguration">
360
   <component name="SvnConfiguration">
282
     <configuration />
361
     <configuration />
291
       <workItem from="1543955862749" duration="2347000" />
370
       <workItem from="1543955862749" duration="2347000" />
292
       <workItem from="1543958998826" duration="113000" />
371
       <workItem from="1543958998826" duration="113000" />
293
       <workItem from="1544020724645" duration="762000" />
372
       <workItem from="1544020724645" duration="762000" />
373
+      <workItem from="1544047323055" duration="54240000" />
374
+      <workItem from="1544469552188" duration="565000" />
375
+      <workItem from="1544580069964" duration="7680000" />
294
     </task>
376
     </task>
295
     <task id="LOCAL-00001" summary="readme and docs">
377
     <task id="LOCAL-00001" summary="readme and docs">
296
       <created>1544021313039</created>
378
       <created>1544021313039</created>
302
     <option name="localTasksCounter" value="2" />
384
     <option name="localTasksCounter" value="2" />
303
     <servers />
385
     <servers />
304
   </component>
386
   </component>
387
+  <component name="TestHistory">
388
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOdds - 2018.12.11 at 22h 30m 05s.xml">
389
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOdds" configurationId="JUnit" />
390
+    </history-entry>
391
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOdds2 - 2018.12.11 at 22h 30m 11s.xml">
392
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOdds2" configurationId="JUnit" />
393
+    </history-entry>
394
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOdds2 - 2018.12.11 at 22h 30m 38s.xml">
395
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOdds2" configurationId="JUnit" />
396
+    </history-entry>
397
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOdds2 - 2018.12.11 at 22h 31m 04s.xml">
398
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOdds2" configurationId="JUnit" />
399
+    </history-entry>
400
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOddsPt2 - 2018.12.12 at 13h 47m 06s.xml">
401
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOddsPt2" configurationId="JUnit" />
402
+    </history-entry>
403
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOdds - 2018.12.12 at 13h 47m 14s.xml">
404
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOdds" configurationId="JUnit" />
405
+    </history-entry>
406
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOdds - 2018.12.12 at 13h 51m 13s.xml">
407
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOdds" configurationId="JUnit" />
408
+    </history-entry>
409
+    <history-entry file="ArrazTest_sortArrayIntoEvensThenOddsPt2 - 2018.12.12 at 13h 51m 23s.xml">
410
+      <configuration name="ArrazTest.sortArrayIntoEvensThenOddsPt2" configurationId="JUnit" />
411
+    </history-entry>
412
+    <history-entry file="ArrazTest_testFindMaxMinOfArray - 2018.12.12 at 14h 09m 28s.xml">
413
+      <configuration name="ArrazTest.testFindMaxMinOfArray" configurationId="JUnit" />
414
+    </history-entry>
415
+    <history-entry file="ArrazTest_testFindMaxMinOfArray - 2018.12.12 at 14h 28m 06s.xml">
416
+      <configuration name="ArrazTest.testFindMaxMinOfArray" configurationId="JUnit" />
417
+    </history-entry>
418
+  </component>
305
   <component name="TimeTrackingManager">
419
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
420
+    <option name="totallyTimeSpent" value="65707000" />
307
   </component>
421
   </component>
308
   <component name="ToolWindowManager">
422
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
423
+    <frame x="0" y="0" width="1440" height="900" extended-state="0" />
310
     <editor active="true" />
424
     <editor active="true" />
311
     <layout>
425
     <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" />
426
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.11087268" />
427
+      <window_info id="Structure" order="1" weight="0.25" />
428
+      <window_info id="Image Layers" order="2" />
429
+      <window_info id="Designer" order="3" />
430
+      <window_info id="UI Designer" order="4" />
431
+      <window_info id="Capture Tool" order="5" />
432
+      <window_info id="Favorites" order="6" side_tool="true" />
433
+      <window_info anchor="bottom" id="Message" order="0" />
434
+      <window_info anchor="bottom" id="Find" order="1" />
435
+      <window_info anchor="bottom" id="Run" order="2" weight="0.32891566" />
436
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.3987952" />
437
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
438
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
439
+      <window_info anchor="bottom" id="TODO" order="6" />
440
+      <window_info anchor="bottom" id="Terminal" order="7" />
441
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
442
+      <window_info anchor="bottom" id="Version Control" order="9" />
443
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
444
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32891566" />
445
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
446
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
447
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
448
+      <window_info anchor="right" id="Palette" order="3" />
449
+      <window_info anchor="right" id="Capture Analysis" order="4" />
450
+      <window_info anchor="right" id="Theme Preview" order="5" />
451
+      <window_info anchor="right" id="Database" order="6" />
452
+      <window_info anchor="right" id="Palette&#9;" order="7" />
453
+      <window_info anchor="right" id="Maven Projects" order="8" />
338
     </layout>
454
     </layout>
455
+    <layout-to-restore>
456
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.11087268" />
457
+      <window_info id="Structure" order="1" weight="0.25" />
458
+      <window_info id="Image Layers" order="2" />
459
+      <window_info id="Designer" order="3" />
460
+      <window_info id="UI Designer" order="4" />
461
+      <window_info id="Capture Tool" order="5" />
462
+      <window_info id="Favorites" order="6" side_tool="true" />
463
+      <window_info anchor="bottom" id="Message" order="0" />
464
+      <window_info anchor="bottom" id="Find" order="1" />
465
+      <window_info anchor="bottom" id="Run" order="2" weight="0.32891566" />
466
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.3987952" />
467
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
468
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
469
+      <window_info anchor="bottom" id="TODO" order="6" />
470
+      <window_info anchor="bottom" id="Terminal" order="7" />
471
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
472
+      <window_info anchor="bottom" id="Version Control" order="9" />
473
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
474
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32891566" />
475
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
476
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
477
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
478
+      <window_info anchor="right" id="Palette" order="3" />
479
+      <window_info anchor="right" id="Capture Analysis" order="4" />
480
+      <window_info anchor="right" id="Theme Preview" order="5" />
481
+      <window_info anchor="right" id="Database" order="6" />
482
+      <window_info anchor="right" id="Palette&#9;" order="7" />
483
+      <window_info anchor="right" id="Maven Projects" order="8" />
484
+    </layout-to-restore>
339
   </component>
485
   </component>
340
   <component name="TypeScriptGeneratedFilesManager">
486
   <component name="TypeScriptGeneratedFilesManager">
341
     <option name="version" value="1" />
487
     <option name="version" value="1" />
347
     <MESSAGE value="readme and docs" />
493
     <MESSAGE value="readme and docs" />
348
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
494
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349
   </component>
495
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354
   <component name="editorHistoryManager">
496
   <component name="editorHistoryManager">
355
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
497
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/internal/runners/model/ReflectiveCallable.class">
356
       <provider selected="true" editor-type-id="text-editor">
498
       <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 />
499
+        <state relative-caret-position="210">
500
+          <caret line="17" selection-start-line="17" selection-end-line="17" />
360
         </state>
501
         </state>
361
       </provider>
502
       </provider>
362
     </entry>
503
     </entry>
363
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
504
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/OddEvenTest.java" />
505
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/util/Iterator.java">
364
       <provider selected="true" editor-type-id="text-editor">
506
       <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 />
368
-        </state>
369
-      </provider>
370
-    </entry>
371
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
372
-      <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 />
507
+        <state relative-caret-position="160">
508
+          <caret line="53" column="17" selection-start-line="53" selection-start-column="17" selection-end-line="53" selection-end-column="17" />
387
         </state>
509
         </state>
388
       </provider>
510
       </provider>
389
     </entry>
511
     </entry>
390
     <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
512
     <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
391
       <provider selected="true" editor-type-id="text-editor">
513
       <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 />
514
+        <state relative-caret-position="240">
515
+          <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
395
         </state>
516
         </state>
396
       </provider>
517
       </provider>
397
     </entry>
518
     </entry>
398
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
519
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
399
       <provider selected="true" editor-type-id="text-editor">
520
       <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 />
403
-        </state>
404
-      </provider>
405
-    </entry>
406
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
407
-      <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 />
521
+        <state>
522
+          <caret column="13" selection-start-column="13" selection-end-column="13" />
411
         </state>
523
         </state>
412
       </provider>
524
       </provider>
413
     </entry>
525
     </entry>
414
     <entry file="file://$PROJECT_DIR$/README.md">
526
     <entry file="file://$PROJECT_DIR$/README.md">
415
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
527
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
416
         <state split_layout="SPLIT">
528
         <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 />
529
+          <first_editor relative-caret-position="315">
530
+            <caret line="21" column="9" selection-start-line="21" selection-start-column="9" selection-end-line="21" selection-end-column="9" />
420
           </first_editor>
531
           </first_editor>
421
           <second_editor />
532
           <second_editor />
422
         </state>
533
         </state>
423
       </provider>
534
       </provider>
424
     </entry>
535
     </entry>
425
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
536
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
426
       <provider selected="true" editor-type-id="text-editor">
537
       <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 />
430
-        </state>
431
-      </provider>
432
-    </entry>
433
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
434
-      <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 />
538
+        <state relative-caret-position="90">
539
+          <caret line="6" column="34" selection-start-line="6" selection-start-column="34" selection-end-line="6" selection-end-column="34" />
438
         </state>
540
         </state>
439
       </provider>
541
       </provider>
440
     </entry>
542
     </entry>
441
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
543
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
442
       <provider selected="true" editor-type-id="text-editor">
544
       <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 />
545
+        <state relative-caret-position="-6507">
546
+          <caret line="425" lean-forward="true" selection-start-line="425" selection-end-line="425" />
547
+          <folding>
548
+            <element signature="imports" expanded="true" />
549
+          </folding>
446
         </state>
550
         </state>
447
       </provider>
551
       </provider>
448
     </entry>
552
     </entry>
449
-    <entry file="file://$PROJECT_DIR$/README.md">
450
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
451
-        <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 />
455
-          </first_editor>
456
-          <second_editor />
553
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
554
+      <provider selected="true" editor-type-id="text-editor">
555
+        <state relative-caret-position="2076">
556
+          <caret line="271" lean-forward="true" selection-start-line="271" selection-end-line="271" />
457
         </state>
557
         </state>
458
       </provider>
558
       </provider>
459
     </entry>
559
     </entry>

+ 2
- 1
arraz/arraz.iml Целия файл

11
     </content>
11
     </content>
12
     <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
12
     <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
13
     <orderEntry type="sourceFolder" forTests="false" />
13
     <orderEntry type="sourceFolder" forTests="false" />
14
-    <orderEntry type="library" name="Maven: junit:junit:4.0" level="project" />
14
+    <orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
15
+    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15
   </component>
16
   </component>
16
 </module>
17
 </module>

+ 1
- 1
arraz/pom.xml Целия файл

11
         <dependency>
11
         <dependency>
12
             <groupId>junit</groupId>
12
             <groupId>junit</groupId>
13
             <artifactId>junit</artifactId>
13
             <artifactId>junit</artifactId>
14
-            <version>4.0</version>
14
+            <version>4.12</version>
15
         </dependency>
15
         </dependency>
16
     </dependencies>
16
     </dependencies>
17
 
17
 

+ 349
- 0
arraz/src/main/java/Arraz.java Целия файл

1
+import java.util.*;
2
+
1
 public class Arraz {
3
 public class Arraz {
4
+
5
+    public int sumValuesOfArray(int[] array) {
6
+
7
+        int sum = 0;
8
+
9
+        for (int i = 0; i < array.length; i++) {
10
+
11
+            sum += array[i];
12
+        }
13
+        return sum;
14
+
15
+    }
16
+
17
+    public double sumDoublesOfArray(double[] newArray) {
18
+
19
+        double sum = 0;
20
+
21
+        for (int i = 0; i < newArray.length; i++) {
22
+            sum += newArray[i];
23
+        }
24
+
25
+        return sum;
26
+    }
27
+
28
+
29
+    public Integer averageOfArray(Integer[] newArray) {
30
+
31
+        Integer result = 0;
32
+        Integer finalResult = 0;
33
+
34
+        for (int i = 0; i < newArray.length; i++) {
35
+
36
+            result += newArray[i];
37
+            finalResult = result / newArray.length;
38
+        }
39
+
40
+        return finalResult;
41
+    }
42
+
43
+
44
+    public double doubleAverageOfArray(double[] exampleArray) {
45
+        double result = 0.0;
46
+        double finalResult = 0.0;
47
+
48
+        for (int i = 0; i < exampleArray.length; i++) {
49
+            result += exampleArray[i];
50
+            finalResult = result / exampleArray.length;
51
+        }
52
+
53
+
54
+        return finalResult;
55
+    }
56
+
57
+    public boolean containsValue(Integer[] x, int num) {
58
+
59
+        for (int i = 0; i < x.length; i++) {
60
+            if (x[i] == num)
61
+                return true;
62
+
63
+        }
64
+        return false;
65
+    }
66
+
67
+    public Integer[] reverseArray(Integer[] x) {
68
+
69
+        Integer[] newArray = new Integer[x.length];
70
+        int counter = 0;
71
+        for (int i = x.length - 1; i >= 0; i--) {
72
+            newArray[counter] = x[i];
73
+            counter++;
74
+
75
+
76
+        }
77
+        return newArray;
78
+
79
+    }
80
+
81
+    public OddEven getOddEvens(Integer[] array) {
82
+        OddEven oddEven = new OddEven();
83
+        for (int i = 0; i < array.length; i++)
84
+            if (array[i] % 2 == 0) {
85
+                oddEven.evens++;
86
+            } else {
87
+                oddEven.odds++;
88
+            }
89
+        return oddEven;
90
+    }
91
+
92
+    public Integer findIndexOf(Integer[] example, Integer value) {
93
+        for (int i = 0; i < example.length; i++) {
94
+            if (example[i] == value)
95
+                return i;
96
+        }
97
+        return -1;
98
+    }
99
+
100
+    public Integer[] copyArrayByIterator(Integer[] array1) {
101
+        Integer[] newArray = new Integer[array1.length];
102
+        Iterator<Integer> integerIterator = Arrays.asList(array1).iterator();
103
+        int count = 0;
104
+        while (integerIterator.hasNext()) {
105
+            newArray[count] = integerIterator.next();
106
+            count++;
107
+        }
108
+        return newArray;
109
+    }
110
+
111
+    public Integer[] copyArrayByLoop(Integer[] array2) {
112
+        Integer[] newArray = new Integer[array2.length];
113
+
114
+        int counter = 0;
115
+
116
+        for (int i = 0; i < array2.length; i++) {
117
+            newArray[counter] = array2[i];
118
+            counter++;
119
+        }
120
+        return newArray;
121
+
122
+
123
+    }
124
+
125
+    public Integer[] removeElementFromArray(Integer[] practArray, Integer valueToRemove) {
126
+        if (containsValue(practArray, valueToRemove)) {
127
+
128
+            Integer[] newArray = new Integer[practArray.length - 1];
129
+            int counter = 0;
130
+            for (int i = 0; i < practArray.length; i++) {
131
+                if (practArray[i] != valueToRemove) {
132
+                    newArray[counter] = practArray[i];
133
+                    counter++;
134
+                }
135
+            }
136
+
137
+            return newArray;
138
+        } else {
139
+            return practArray;
140
+        }
141
+
142
+    }
143
+
144
+    public Integer[] insertIntoArray(Integer[] practicalArray, Integer index, Integer valueToAdd) {
145
+
146
+        Integer[] newArray = new Integer[practicalArray.length + 1];
147
+
148
+        for (int i = 0; i <= practicalArray.length; i++) {
149
+            if (i < index) {
150
+                newArray[i] = practicalArray[i];
151
+            } else if (i == index) {
152
+                newArray[i] = valueToAdd;
153
+            } else {
154
+                newArray[i] = practicalArray[i - 1];
155
+            }
156
+        }
157
+
158
+        return newArray;
159
+
160
+
161
+    }
162
+
163
+    public Integer getMinValue(Integer[] array) {
164
+
165
+        Integer minValue = array[0];
166
+
167
+        for (int i = 0; i < array.length; i++) {
168
+            if (array[i] < minValue)
169
+                minValue = array[i];
170
+        }
171
+        return minValue;
172
+
173
+
174
+    }
175
+
176
+    public Integer getMaxValue(Integer[] array) {
177
+
178
+        Integer maxValue = array[0];
179
+
180
+        for (int i = 0; i < array.length; i++) {
181
+            if (array[i] > maxValue)
182
+                maxValue = array[i];
183
+        }
184
+        return maxValue;
185
+
186
+    }
187
+
188
+    public MaxMin findMaxMinOfArray(Integer[] array) {
189
+
190
+
191
+        MaxMin maxMin = new MaxMin(0,0);
192
+        maxMin.max = getMaxValue(array);
193
+        maxMin.min = getMinValue(array);
194
+        return maxMin;
195
+
196
+    }
197
+
198
+
199
+    public Integer[] removeDuplicatesFromArray(Integer[] array) {
200
+        Set<Integer> result = new LinkedHashSet<Integer>();
201
+        for (int i = 0; i < array.length; i++) {
202
+            result.add(array[i]);
203
+        }
204
+        //Copy elements from set back to the new Array
205
+        Integer[] finalResult = new Integer[result.size()];
206
+        int i = 0;
207
+        for (Integer var : result) {
208
+            finalResult[i++] = var;
209
+        }
210
+        return finalResult;
211
+    }
212
+
213
+
214
+    public Double find2ndLargestValueFromArray(Double[] array1) {
215
+        Double largest = array1[0];
216
+        Double secondLargest = array1[0];
217
+        for (int i = 0; i < array1.length; i++) {
218
+            if (array1[i] > largest) {
219
+                secondLargest = largest;
220
+                largest = array1[i];
221
+            } else if (array1[i] > secondLargest) {
222
+                secondLargest = array1[i];
223
+            }
224
+        }
225
+        return secondLargest;
226
+    }
227
+
228
+    public List<Integer> turnArrayToArrayList(Integer[] example) {
229
+        List<Integer> finalResult = Arrays.asList(example);
230
+        return finalResult;
231
+
232
+
233
+    }
234
+
235
+    public Integer[] makeMeAnArrayFromArrayList(List<Integer> arrayList) {
236
+
237
+        Integer[] finalResult = arrayList.toArray(new Integer[arrayList.size()]);
238
+
239
+
240
+        return finalResult;
241
+    }
242
+
243
+    public boolean check2ArraysForEqual(Integer[] example1, Integer[] example2) {
244
+
245
+        for (int i = 0; i < example1.length; i++)
246
+            if (example1[i] != example2[i]) {
247
+                return false;
248
+            }
249
+        return true;
250
+    }
251
+
252
+
253
+
254
+
255
+    public Integer averageArratWithoutMaxMin(Integer[] arrayProvided) {
256
+        MaxMin maxmin = new MaxMin(0,0);
257
+        maxmin.findMaxMinOfArray(arrayProvided);
258
+        int max = maxmin.getMax();
259
+        int min = maxmin.getMin();
260
+        Integer[] finalArray = new Integer[arrayProvided.length - 2];
261
+        for (int i = 0, j = 0; i < arrayProvided.length; i++, j++)
262
+
263
+            if (arrayProvided[i] != max && arrayProvided[i] != min)
264
+                finalArray[i] = arrayProvided[i];
265
+            else {
266
+                j--;
267
+            }
268
+        return averageOfArray(arrayProvided);
269
+    }
270
+
271
+    public boolean arrayHas65and77(Integer[] example1) {
272
+
273
+        for(int i =0; i<example1.length; i++){
274
+            if(example1[i] == 65 && example1[i]==77)
275
+                return true;
276
+        }
277
+            return false;
278
+    }
279
+
280
+
281
+    public boolean theTotalofTensIs30(Integer[] example1) {
282
+
283
+            int counter=0;
284
+        for( int i =0; i< example1.length; i++){
285
+            if(example1[i] == 10)
286
+                counter+=i;
287
+                if(counter == 30)
288
+                    return true;
289
+            }
290
+            return false;
291
+        }
292
+
293
+    public Integer[] findSmallestAndSecondSmallestOfArray(Integer[] example1) {
294
+
295
+        Arrays.sort(example1);
296
+        return new Integer[]{example1[0],example1[1]};
297
+    }
298
+
299
+    public Integer[] reverseACopyOfArray(Integer[] array1) {
300
+        Integer[] finalArray = new Integer[array1.length];
301
+        finalArray = reverseArray(array1);
302
+        return finalArray;
303
+    }
304
+
305
+    public Integer[] removeLastItemAndCopy(Integer[] array1) {
306
+
307
+        return removeElementFromArray(array1, array1[array1.length-1]);
308
+    }
309
+
310
+    public Integer[] removeFirstItemAndCopy(Integer[] array1) {
311
+
312
+        return removeElementFromArray(array1, array1[0]);
313
+
314
+    }
315
+
316
+    public Integer[] insertAtStartAndCopy(Integer[] array1, Integer num) {
317
+
318
+        return insertIntoArray(array1, 0,  num);
319
+
320
+
321
+    }
322
+
323
+    public Integer[] insertAtEndAndCopy(Integer[] array1, Integer num) {
324
+
325
+        return insertIntoArray(array1, array1.length, num);
326
+    }
327
+
328
+
329
+    public Integer[] sortArrayIntoEvensThenOdds(Integer[] array1) {
330
+        Integer [] newArray = new Integer[array1.length];
331
+        Arrays.sort(array1);
332
+        int counter =0;
333
+
334
+        for(int i =0; i< array1.length; i++) {
335
+            if (array1[i] % 2 == 0) {
336
+                newArray[counter] = array1[i];
337
+                counter++;
338
+            }
339
+        }
340
+        for(int j=0; j< array1.length; j++){
341
+                if(array1[j]%2!=0) {
342
+                    newArray[counter] = array1[j];
343
+                    counter++;
344
+                }
345
+        }
346
+
347
+        return newArray;
348
+    }
2
 }
349
 }
350
+
351
+

+ 24
- 0
arraz/src/main/java/MaxMin.java Целия файл

1
+public class MaxMin {
2
+
3
+    public int max;
4
+    public int min;
5
+
6
+    //Constructor
7
+    public MaxMin(int min, int max) {
8
+        this.max = max;
9
+        this.min =min;
10
+    }
11
+
12
+    //Getters
13
+    public int getMax() {
14
+        return max;
15
+    }
16
+
17
+    public int getMin() {
18
+        return min;
19
+    }
20
+
21
+    public void findMaxMinOfArray(Integer[] arrayProvided) {
22
+
23
+    }
24
+}

+ 25
- 0
arraz/src/main/java/OddEven.java Целия файл

1
+public class OddEven {
2
+    //fields
3
+    public int odds;
4
+
5
+    public int evens;
6
+
7
+ //Constructor
8
+
9
+ public OddEven() {
10
+    this.odds = odds;
11
+    this.evens =evens;
12
+ }
13
+
14
+
15
+//Getters
16
+    public int getOdds() {
17
+
18
+        return odds;
19
+    }
20
+
21
+    public int getEvens() {
22
+
23
+        return evens;
24
+    }
25
+}

+ 902
- 2
arraz/src/test/java/ArrazTest.java Целия файл

1
-import static org.junit.Assert.*;
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+import java.util.ArrayList;
5
+import java.util.Arrays;
6
+import java.util.List;
7
+
2
 
8
 
3
 public class ArrazTest {
9
 public class ArrazTest {
4
 
10
 
5
-}
11
+    Arraz arraz = new Arraz();
12
+
13
+    @Test
14
+
15
+    public void testSumValuesOfArray() {
16
+        //given
17
+        int[] example = {1, 2, 3};
18
+
19
+        //when
20
+        int expected = 6;
21
+        int actual = arraz.sumValuesOfArray(example);
22
+
23
+        //then
24
+        Assert.assertEquals(expected, actual);
25
+    }
26
+
27
+    @Test
28
+    public void testSumValuesOfArrayPt2() {
29
+        //given
30
+        int[] example2 = {5, 3, 1};
31
+
32
+        //when
33
+        int expected = 9;
34
+        int actual = arraz.sumValuesOfArray(example2);
35
+
36
+        //then
37
+        Assert.assertEquals(expected, actual);
38
+
39
+    }
40
+
41
+    @Test
42
+    public void testSumDoubleOfArray() {
43
+        //given
44
+        double[] newArray = {5.2, 3.3, 1.2};
45
+
46
+        //when
47
+        double expected = 9.7;
48
+        double actual = arraz.sumDoublesOfArray(newArray);
49
+
50
+        //then
51
+        Assert.assertEquals(expected, actual, .01);
52
+    }
53
+
54
+    @Test
55
+    public void testSumDoubleOfArrayPt2() {
56
+        //given
57
+        double[] newArray2 = {3.0, 2.0, 1.0};
58
+
59
+        //when
60
+        double expected = 6.0;
61
+        double actual = arraz.sumDoublesOfArray(newArray2);
62
+
63
+        //then
64
+        Assert.assertEquals(expected, actual, .01);
65
+    }
66
+
67
+    @Test
68
+    public void testAverageOfArray() {
69
+        //given
70
+        Integer[] newArray = {3, 2, 4};
71
+
72
+        //when
73
+        Integer expected = 3;
74
+        Integer actual = arraz.averageOfArray(newArray);
75
+
76
+        //then
77
+        Assert.assertEquals(expected, actual);
78
+
79
+    }
80
+
81
+    @Test
82
+    public void testAverageOfArrayPt2() {
83
+        //given
84
+        Integer[] newArray = {3, 5, 4};
85
+
86
+        //when
87
+        Integer expected = 4;
88
+        Integer actual = arraz.averageOfArray(newArray);
89
+
90
+        //then
91
+        Assert.assertEquals(expected, actual);
92
+
93
+    }
94
+
95
+    @Test
96
+    public void testAverageOfDoubleArray() {
97
+        //Given
98
+        double[] v = {3.0, 3.2, 4.0};
99
+
100
+        //When
101
+        double expected = (v[0] + v[1] + v[2]) / v.length;
102
+        double actual = arraz.doubleAverageOfArray(v);
103
+
104
+        //Then
105
+        Assert.assertEquals(expected, actual, .01);
106
+    }
107
+
108
+    @Test
109
+    public void testAverageOfDoubleArrayPyt2() {
110
+        //Given
111
+        double[] p = {5.0, 5.2, 5.4};
112
+
113
+        //When
114
+        double expected = (p[0] + p[1] + p[2]) / p.length;
115
+        double actual = arraz.doubleAverageOfArray(p);
116
+
117
+        //Then
118
+        Assert.assertEquals(expected, actual, .01);
119
+    }
120
+
121
+    @Test
122
+    public void testContainsValue() {
123
+        // Given
124
+        Integer[] x = {1, 3, 4, 5, 10};
125
+        int num = 10;
126
+
127
+
128
+        //Then
129
+        boolean expected = true;
130
+        boolean actual = arraz.containsValue(x, num);
131
+
132
+        //When
133
+        Assert.assertEquals(expected, actual);
134
+
135
+    }
136
+
137
+    @Test
138
+    public void testContainsValuePt2() {
139
+        // Given
140
+        Integer[] x = {1, 3, 4, 5, 10};
141
+        int num = 4;
142
+
143
+
144
+        //Then
145
+        boolean expected = true;
146
+        boolean actual = arraz.containsValue(x, num);
147
+
148
+        //When
149
+        Assert.assertEquals(expected, actual);
150
+
151
+    }
152
+
153
+    @Test
154
+    public void testReverseArray() {
155
+
156
+        //Given
157
+        Integer[] x = {1, 2, 3, 4, 5};
158
+
159
+        //When
160
+
161
+        Integer[] expected = {5, 4, 3, 2, 1};
162
+
163
+        Integer[] actual = arraz.reverseArray(x);
164
+
165
+        //Then
166
+
167
+        Assert.assertTrue(Arrays.equals(expected, actual));
168
+    }
169
+
170
+
171
+    @Test
172
+    public void testReverseArrayPt2() {
173
+
174
+        //Given
175
+        Integer[] x = {4, 1, 2, 3, 9};
176
+
177
+        //When
178
+
179
+        Integer[] expected = {9, 3, 2, 1, 4};
180
+
181
+        Integer[] actual = arraz.reverseArray(x);
182
+
183
+        //Then
184
+
185
+        Assert.assertTrue(Arrays.equals(expected, actual));
186
+    }
187
+
188
+    @Test
189
+    public void testGetOddEven() {
190
+        //Given
191
+        Integer[] example = {1, 2, 3, 4, 5, 6, 7};
192
+
193
+
194
+        //When
195
+        int expected = 3;
196
+        int actual = arraz.getOddEvens(example).getEvens();
197
+
198
+
199
+        //Then
200
+        Assert.assertEquals(expected, actual);
201
+
202
+    }
203
+
204
+    @Test
205
+    public void testGetOddEvenPt2() {
206
+        //Given
207
+        Integer[] example = {1, 2, 3, 4, 5, 6, 7};
208
+
209
+
210
+        //When
211
+        int expected = 4;
212
+        int actual = arraz.getOddEvens(example).getOdds();
213
+
214
+
215
+        //Then
216
+        Assert.assertEquals(expected, actual);
217
+
218
+    }
219
+
220
+    @Test
221
+    public void testFindIndexOf() {
222
+        //Given
223
+        Integer[] example = {1, 2, 3, 4};
224
+        Integer value = 3;
225
+
226
+        //When
227
+        Integer expected = 2;
228
+        Integer actual = arraz.findIndexOf(example, value);
229
+
230
+        //Then
231
+        Assert.assertEquals(expected, actual);
232
+
233
+    }
234
+
235
+
236
+    @Test
237
+    public void testFindIndexOfPt2() {
238
+        //Given
239
+        Integer[] example = {1, 2, 3, 4};
240
+        Integer value = 4;
241
+
242
+        //When
243
+        Integer expected = 3;
244
+        Integer actual = arraz.findIndexOf(example, value);
245
+
246
+        //Then
247
+        Assert.assertEquals(expected, actual);
248
+
249
+    }
250
+
251
+    @Test
252
+    public void testCopyArrayByIterator() {
253
+
254
+        //Given
255
+        Integer[] array1 = {1, 2, 3, 4, 5};
256
+
257
+
258
+        //When
259
+        Integer[] expected = {1, 2, 3, 4, 5};
260
+
261
+        Integer[] actual = arraz.copyArrayByIterator(array1);
262
+
263
+
264
+        //Then
265
+        Assert.assertTrue(Arrays.equals(expected, actual));
266
+
267
+
268
+    }
269
+
270
+    @Test
271
+    public void testCopyArrayByIteratorPt2() {
272
+
273
+        //Given
274
+        Integer[] array2 = {6, 4, 2, 8, 4};
275
+
276
+
277
+        //When
278
+        Integer[] expected = {6, 4, 2, 8, 4};
279
+
280
+        Integer[] actual = arraz.copyArrayByIterator(array2);
281
+
282
+
283
+        //Then
284
+        Assert.assertTrue(Arrays.equals(expected, actual));
285
+
286
+
287
+    }
288
+
289
+    @Test
290
+    public void testCopyArrayByLoop() {
291
+        //Given
292
+        Integer[] array1 = {5, 9, 3, 2, 1};
293
+
294
+
295
+        //When
296
+        Integer[] expected = {5, 9, 3, 2, 1};
297
+
298
+        Integer[] actual = arraz.copyArrayByLoop(array1);
299
+
300
+
301
+        //Then
302
+        Assert.assertTrue(Arrays.equals(expected, actual));
303
+
304
+
305
+    }
306
+
307
+    @Test
308
+    public void testCopyArrayByLoopPt2() {
309
+        //Given
310
+        Integer[] array2 = {9, 4, 3, 3, 2};
311
+
312
+
313
+        //When
314
+        Integer[] expected = {9, 4, 3, 3, 2};
315
+
316
+        Integer[] actual = arraz.copyArrayByLoop(array2);
317
+
318
+
319
+        //Then
320
+        Assert.assertTrue(Arrays.equals(expected, actual));
321
+
322
+    }
323
+
324
+    @Test
325
+    public void testRemoveElementFromArray() {
326
+        //Given
327
+        Integer[] practArray = {2, 3, 4, 5, 6};
328
+        Integer valueToRemove = 6;
329
+
330
+
331
+        //When
332
+        Integer[] expected = {2, 3, 4, 5};
333
+        Integer[] actual = arraz.removeElementFromArray(practArray, valueToRemove);
334
+
335
+
336
+        //Then
337
+        Assert.assertTrue(Arrays.equals(expected, actual));
338
+    }
339
+
340
+
341
+    @Test
342
+    public void testRemoveElementFromArrayPt2() {
343
+        //Given
344
+        Integer[] practArray2 = {10, 3, 18, 9, 3};
345
+        Integer valueToRemove = 18;
346
+
347
+
348
+        //When
349
+        Integer[] expected = {10, 3, 9, 3};
350
+        Integer[] actual = arraz.removeElementFromArray(practArray2, valueToRemove);
351
+
352
+
353
+        //Then
354
+        Assert.assertTrue(Arrays.equals(expected, actual));
355
+    }
356
+
357
+    @Test
358
+
359
+    public void testInsertIntoArray() {
360
+        //Given
361
+        Integer[] practicalArray = {1, 2, 3, 4, 5};
362
+        Integer valueToAdd = 6;
363
+        Integer index = 2;
364
+
365
+        //When
366
+        Integer[] expected = {1, 2, 6, 3, 4, 5};
367
+        Integer[] actual = arraz.insertIntoArray(practicalArray, index, valueToAdd);
368
+        //System.out.println(Arrays.toString(actual));
369
+        //Then
370
+        Assert.assertTrue(Arrays.equals(expected, actual));
371
+    }
372
+
373
+    @Test
374
+    public void testInsertIntoArrayPt2() {
375
+        //Given
376
+        Integer[] differentArray = {5, 12, 13, 40, 53};
377
+        Integer valueToAdd = 69;
378
+        Integer index = 3;
379
+
380
+        //When
381
+        Integer[] expected = {5, 12, 13, 69, 40, 53};
382
+        Integer[] actual = arraz.insertIntoArray(differentArray, index, valueToAdd);
383
+
384
+        //Then
385
+        Assert.assertTrue(Arrays.equals(expected, actual));
386
+
387
+    }
388
+
389
+    @Test
390
+    public void testgetMinValue() {
391
+        //Given
392
+        Integer[] array = {62, 73, -544, 13};
393
+
394
+        //When
395
+        Integer expected = -544;
396
+        Integer actual = arraz.getMinValue(array);
397
+
398
+
399
+        //Then
400
+        Assert.assertEquals(expected, actual);
401
+
402
+    }
403
+
404
+    @Test
405
+    public void testgetMaxValue() {
406
+        //Given
407
+        Integer[] array = {62, 73, -544, 13};
408
+
409
+        //When
410
+        Integer expected = 73;
411
+        Integer actual = arraz.getMaxValue(array);
412
+
413
+
414
+        //Then
415
+        Assert.assertEquals(expected, actual);
416
+
417
+    }
418
+
419
+    @Test
420
+    public void testFindMaxMinOfArray(){
421
+        Integer[] newStuff = { 1,2,3,4,5,6};
422
+        MaxMin newTest = new MaxMin(1,6);
423
+          MaxMin actual = arraz.findMaxMinOfArray(newStuff);
424
+        Assert.assertEquals(newTest,actual);
425
+
426
+
427
+
428
+
429
+
430
+        }
431
+
432
+    @Test
433
+    public void testRemoveDuplicatesFromArray() {
434
+        //Given
435
+        Integer[] array = {5, 12, 13, 13, 40, 53};
436
+
437
+
438
+        //When
439
+        Integer[] expected = {5, 12, 13, 40, 53};
440
+        Integer[] actual = arraz.removeDuplicatesFromArray(array);
441
+
442
+        //Then
443
+        Assert.assertTrue(Arrays.equals(expected, actual));
444
+
445
+    }
446
+
447
+    @Test
448
+    public void testRemoveDuplicatesFromArrayPt2() {
449
+        //Given
450
+        Integer[] array2 = {5, 11, 11, 9, 5, 40, 53};
451
+
452
+
453
+        //When
454
+        Integer[] expected = {5, 11, 9, 40, 53};
455
+        Integer[] actual = arraz.removeDuplicatesFromArray(array2);
456
+
457
+        //Then
458
+        Assert.assertTrue(Arrays.equals(expected, actual));
459
+
460
+    }
461
+
462
+    @Test
463
+    public void testFind2ndLargestValueFromArray() {
464
+
465
+        //Given
466
+        Double[] array1 = {1.1, 2.2, 3.3, 4.4, 5.5, 6.6};
467
+
468
+        //Then
469
+        Double expected = 5.5;
470
+        Double actual = arraz.find2ndLargestValueFromArray(array1);
471
+
472
+        //When
473
+        Assert.assertEquals(expected, actual, .01);
474
+    }
475
+
476
+    @Test
477
+    public void testFind2ndLargestValueFromArrayPt2() {
478
+
479
+        //Given
480
+        Double[] array2 = {13.1, 12.2, 83.3, 77.2, 9.3, 7.6};
481
+
482
+        //Then
483
+        Double expected = 77.2;
484
+        Double actual = arraz.find2ndLargestValueFromArray(array2);
485
+
486
+        //When
487
+        Assert.assertEquals(expected, actual, .01);
488
+    }
489
+
490
+
491
+    @Test
492
+    public void testTurnArrayToArrayList() {
493
+        //Given
494
+        Integer[] example = {2, 3, 4, 5, 6};
495
+        List<Integer> list = new ArrayList<Integer>();
496
+        list.add(2);
497
+        list.add(3);
498
+        list.add(4);
499
+        list.add(5);
500
+        list.add(6);
501
+
502
+        //Then
503
+        List<Integer> actual = arraz.turnArrayToArrayList(example);
504
+        //When
505
+        Assert.assertEquals(list, actual);
506
+    }
507
+
508
+    @Test
509
+    public void testTurnArrayToArrayListPt2() {
510
+        //Given
511
+        Integer[] example2 = {4, 5, 9, 10, 1};
512
+        List<Integer> list = new ArrayList<Integer>();
513
+        list.add(4);
514
+        list.add(5);
515
+        list.add(9);
516
+        list.add(10);
517
+        list.add(1);
518
+
519
+        //Then
520
+        List<Integer> actual = arraz.turnArrayToArrayList(example2);
521
+        //When
522
+        Assert.assertEquals(list, actual);
523
+
524
+    }
525
+
526
+        @Test
527
+    public void testMakeMeAnArrayFromArrayList(){
528
+             //Given
529
+            List<Integer> arrayList = new ArrayList<Integer>();
530
+            arrayList.add(10);
531
+            arrayList.add(12);
532
+            arrayList.add(13);
533
+            arrayList.add(60);
534
+            //Then
535
+
536
+            Integer[] expected ={10,12,13,60};
537
+            Integer[] actual = arraz.makeMeAnArrayFromArrayList(arrayList);
538
+
539
+            //When
540
+
541
+            Assert.assertTrue(Arrays.equals(expected, actual));
542
+
543
+        }
544
+
545
+    @Test
546
+    public void testMakeMeAnArrayFromArrayListPt2(){
547
+        //Given
548
+        List<Integer> arrayList = new ArrayList<Integer>();
549
+        arrayList.add(60);
550
+        arrayList.add(100);
551
+        arrayList.add(35);
552
+        arrayList.add(95);
553
+        //Then
554
+
555
+        Integer[] expected ={60,100,35,95};
556
+        Integer[] actual = arraz.makeMeAnArrayFromArrayList(arrayList);
557
+
558
+        //When
559
+
560
+       Assert.assertTrue(Arrays.equals(expected, actual));
561
+    }
562
+
563
+
564
+    @Test
565
+    public void testCheck2ArraysForEqual(){
566
+        //Given
567
+        Integer[] example1 = {1,2,3,4,5,6};
568
+        Integer[] example2 = {1,2,3,4,5,6};
569
+
570
+
571
+
572
+        //when
573
+       Assert.assertTrue(arraz.check2ArraysForEqual(example1,example2));
574
+    }
575
+
576
+    @Test
577
+    public void testCheck2ArraysForEqualPt2(){
578
+        //Given
579
+        Integer[] example2 = {1,2,3,4,5,6};
580
+        Integer[] example3 = {1,3,3,4,3,6};
581
+
582
+
583
+
584
+        //when
585
+        Assert.assertFalse(arraz.check2ArraysForEqual(example2,example3));
586
+    }
587
+
588
+    @Test
589
+    public void testAverageArrayWithoutMaxMin(){
590
+       //Given
591
+        Integer[] arrayProvided= {1,2,3,4,5,6};
592
+
593
+        //When
594
+        Integer expected = (2+3+4+5) / (arrayProvided.length-2);
595
+        Integer actual = arraz.averageArratWithoutMaxMin(arrayProvided);
596
+
597
+        //Then
598
+        Assert.assertEquals(expected, actual);
599
+
600
+
601
+    }
602
+
603
+    @Test
604
+    public void testAverageArrayWithoutMaxMinPt2(){
605
+        //Given
606
+        Integer[] arrayProvidedpt2= {10,2,12,5,4,6};
607
+
608
+        //When
609
+        Integer expected = (10+5+4+6) / (arrayProvidedpt2.length-2);
610
+        Integer actual = arraz.averageArratWithoutMaxMin(arrayProvidedpt2);
611
+
612
+        //Then
613
+        Assert.assertEquals(expected, actual);
614
+
615
+
616
+    }
617
+
618
+    @Test
619
+    public void arrayHas65and77(){
620
+        //Given
621
+        Integer[] example1 = {30, 65, 92, 77, 101};
622
+
623
+        //When
624
+
625
+        Boolean expected = true;
626
+        Boolean actual = arraz.arrayHas65and77(example1);
627
+
628
+        //Them
629
+        Assert.assertFalse(arraz.arrayHas65and77(example1));
630
+
631
+
632
+    }
633
+
634
+    @Test
635
+    public void arrayHas65and77Pt2(){
636
+        //Given
637
+        Integer[] example1 = {30, 33, 92, 100, 101};
638
+
639
+        //When
640
+
641
+        Boolean expected = true;
642
+        Boolean actual = arraz.arrayHas65and77(example1);
643
+
644
+        //Then
645
+        Assert.assertFalse(arraz.arrayHas65and77(example1));
646
+
647
+
648
+    }
649
+
650
+    @Test
651
+    public void testTheTotalofTensIs30(){
652
+        //Given
653
+        Integer[] example1= {13, 7,11, 10, 10, 22, 10};
654
+
655
+        //When
656
+
657
+        Boolean expected = true;
658
+        Boolean actual = arraz.theTotalofTensIs30(example1);
659
+
660
+        //Then
661
+        Assert.assertFalse(arraz.theTotalofTensIs30(example1));
662
+
663
+
664
+    }
665
+
666
+    @Test
667
+    public void testTheTotalofTensIs30Pt2(){
668
+        //Given
669
+        Integer[] example2= {13, 7,11, 10, 22, 10};
670
+
671
+        //When
672
+
673
+        Boolean expected = true;
674
+        Boolean actual = arraz.theTotalofTensIs30(example2);
675
+
676
+        //Then
677
+        Assert.assertFalse(arraz.theTotalofTensIs30(example2));
678
+
679
+
680
+    }
681
+
682
+
683
+    @Test
684
+    public void testFindSmallestAndSecondSmallestOfArray(){
685
+        //Given
686
+        Integer[] example1 = {3,1,7,19,22,31};
687
+
688
+        //when
689
+        Integer[] expected = {1,3};
690
+        Integer[] actual = arraz.findSmallestAndSecondSmallestOfArray(example1);
691
+
692
+
693
+        //Then
694
+        Assert.assertTrue(Arrays.equals(expected, actual));
695
+
696
+    }
697
+
698
+
699
+
700
+    @Test
701
+    public void testFindSmallestAndSecondSmallestOfArrayPt2(){
702
+        //Given
703
+        Integer[] example1 = {9,10,7,19,22,31};
704
+
705
+        //when
706
+        Integer[] expected = {7,9};
707
+        Integer[] actual = arraz.findSmallestAndSecondSmallestOfArray(example1);
708
+
709
+
710
+        //Then
711
+        Assert.assertTrue(Arrays.equals(expected, actual));
712
+
713
+    }
714
+
715
+    @Test
716
+    public void testReverseACopyOfArray(){
717
+        //Given
718
+        Integer[] array1 = {1,2,3,4,5};
719
+
720
+
721
+        //When
722
+        Integer[] expected = {5,4,3,2,1};
723
+        Integer[] actual = arraz.reverseACopyOfArray(array1);
724
+
725
+        //Then
726
+        Assert.assertTrue(Arrays.equals(expected, actual));
727
+    }
728
+
729
+    @Test
730
+    public void testReverseACopyOfArrayPt2(){
731
+        //Given
732
+        Integer[] array1 = {10,11,12,13,14,15};
733
+
734
+
735
+        //When
736
+        Integer[] expected = {15,14,13,12,11,10};
737
+        Integer[] actual = arraz.reverseACopyOfArray(array1);
738
+
739
+        //Then
740
+        Assert.assertTrue(Arrays.equals(expected, actual));
741
+    }
742
+
743
+    @Test
744
+    public void testRemoveLastItemAndCopy(){
745
+
746
+        //Given
747
+        Integer[] array1 = {2,4,6,8,10};
748
+
749
+        //When
750
+
751
+        Integer[] expected = {2,4,6,8};
752
+        Integer[] actual = arraz.removeLastItemAndCopy(array1);
753
+
754
+
755
+        //Then
756
+
757
+        Assert.assertTrue(Arrays.equals(expected, actual));
758
+    }
759
+
760
+    @Test
761
+    public void testRemoveLastItemAndCopyPt2(){
762
+
763
+        //Given
764
+        Integer[] array1 = {9,4,6,8,11};
765
+
766
+        //When
767
+
768
+        Integer[] expected = {9,4,6,8};
769
+        Integer[] actual = arraz.removeLastItemAndCopy(array1);
770
+
771
+
772
+        //Then
773
+
774
+        Assert.assertTrue(Arrays.equals(expected, actual));
775
+    }
776
+    @Test
777
+    public void testRemoveFirstItemAndCopy(){
778
+        //Given
779
+
780
+        Integer[] array1 = {1,2,3,4,5,6};
781
+
782
+
783
+        //When
784
+
785
+        Integer[] expected = {2,3,4,5,6};
786
+        Integer[] actual = arraz.removeFirstItemAndCopy(array1);
787
+
788
+
789
+        //Then
790
+        Assert.assertTrue(Arrays.equals(expected, actual));
791
+
792
+    }
793
+
794
+    @Test
795
+    public void testRemoveFirstItemAndCopyPt2(){
796
+        //Given
797
+
798
+        Integer[] array1 = {6,7,8,9,10,11};
799
+
800
+
801
+        //When
802
+
803
+        Integer[] expected = {7,8,9,10,11};
804
+        Integer[] actual = arraz.removeFirstItemAndCopy(array1);
805
+
806
+
807
+        //Then
808
+        Assert.assertTrue(Arrays.equals(expected, actual));
809
+
810
+    }
811
+
812
+    @Test
813
+    public void testInsertAtStartAndCopy(){
814
+
815
+        //Given
816
+        Integer[] array1 = {1,2,3,4,5};
817
+        Integer num = 1;
818
+
819
+        //when
820
+        Integer[] expected = {1,1,2,3,4,5};
821
+        Integer[] actual = arraz.insertAtStartAndCopy(array1, num);
822
+
823
+        //Then
824
+
825
+        Assert.assertTrue(Arrays.equals(expected, actual));
826
+    }
827
+
828
+    @Test
829
+    public void testInsertAtStartAndCopyPT2(){
830
+
831
+        //Given
832
+        Integer[] array1 = {5,4,3,2,1};
833
+        Integer num = 6;
834
+
835
+        //when
836
+        Integer[] expected = {6,5,4,3,2,1};
837
+        Integer[] actual = arraz.insertAtStartAndCopy(array1, num);
838
+
839
+        //Then
840
+
841
+        Assert.assertTrue(Arrays.equals(expected, actual));
842
+    }
843
+
844
+    @Test
845
+    public void testInsertAtEndAndCopy() {
846
+
847
+        //Given
848
+        Integer[] array1 = {1, 2, 3, 4, 5};
849
+        Integer num = 6;
850
+
851
+        //when
852
+        Integer[] expected = {1, 2, 3, 4, 5, 6};
853
+        Integer[] actual = arraz.insertAtEndAndCopy(array1, num);
854
+
855
+        //Then
856
+
857
+        Assert.assertTrue(Arrays.equals(expected, actual));
858
+    }
859
+
860
+
861
+    @Test
862
+    public void testInsertAtEndAndCopyPt2(){
863
+
864
+        //Given
865
+        Integer[] array1 = {3,4,5,9,10};
866
+        Integer num = 37;
867
+
868
+        //when
869
+        Integer[] expected = {3,4,5,9,10,37};
870
+        Integer[] actual = arraz.insertAtEndAndCopy(array1, num);
871
+
872
+        //Then
873
+
874
+        Assert.assertTrue(Arrays.equals(expected, actual));
875
+    }
876
+
877
+    @Test
878
+ public void sortArrayIntoEvensThenOdds() {
879
+        //Given
880
+        Integer[] array1 = {102,13,15,16,18,22,3,7};
881
+        //Then
882
+        Integer[] expected = {16,18,22,102,3,7,13,15};
883
+        Integer[] actual = arraz.sortArrayIntoEvensThenOdds(array1);
884
+        //when
885
+        Assert.assertTrue(Arrays.equals(expected,actual));
886
+           }
887
+
888
+    @Test
889
+    public void sortArrayIntoEvensThenOddsPt2() {
890
+        //Given
891
+        Integer[] spiffyHandyIntArray = {4,5,102,6,-7,12,-32,92,8};
892
+        //Then
893
+        Integer[] expected = {-32,4,6,8,12,92,102,-7,5,};
894
+        Integer[] actual = arraz.sortArrayIntoEvensThenOdds(spiffyHandyIntArray);
895
+        //when
896
+        Assert.assertTrue(Arrays.equals(expected,actual));
897
+    }
898
+
899
+
900
+
901
+
902
+
903
+}
904
+
905
+