Bladeren bron

{almost done}

Jacqueline Joson 6 jaren geleden
bovenliggende
commit
18e9fb49fc

+ 16
- 0
arraz/.idea/compiler.xml Bestand weergeven

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="arraz" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="arraz" target="8" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
arraz/.idea/libraries/Maven__junit_junit_4_12.xml Bestand weergeven

@@ -0,0 +1,13 @@
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
arraz/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml Bestand weergeven

@@ -0,0 +1,13 @@
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>

+ 13
- 0
arraz/.idea/misc.xml Bestand weergeven

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="MavenProjectsManager">
4
+    <option name="originalFiles">
5
+      <list>
6
+        <option value="$PROJECT_DIR$/pom.xml" />
7
+      </list>
8
+    </option>
9
+  </component>
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
13
+</project>

+ 8
- 0
arraz/.idea/modules.xml Bestand weergeven

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/arraz.iml" filepath="$PROJECT_DIR$/arraz.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
arraz/.idea/vcs.xml Bestand weergeven

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
+  </component>
6
+</project>

+ 550
- 0
arraz/.idea/workspace.xml Bestand weergeven

@@ -0,0 +1,550 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="5cac5bc1-694f-45c1-abd2-3cc9bc280198" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz.iml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Arraz.java" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/ArrazTest.java" afterDir="false" />
9
+    </list>
10
+    <ignored path="$PROJECT_DIR$/target/" />
11
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
12
+    <option name="SHOW_DIALOG" value="false" />
13
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+    <option name="LAST_RESOLUTION" value="IGNORE" />
16
+  </component>
17
+  <component name="FUSProjectUsageTrigger">
18
+    <session id="1236396460">
19
+      <usages-collector id="statistics.lifecycle.project">
20
+        <counts>
21
+          <entry key="project.open.time.0" value="1" />
22
+          <entry key="project.opened" value="1" />
23
+        </counts>
24
+      </usages-collector>
25
+      <usages-collector id="statistics.file.extensions.open">
26
+        <counts>
27
+          <entry key="class" value="8" />
28
+          <entry key="java" value="9" />
29
+          <entry key="xml" value="1" />
30
+        </counts>
31
+      </usages-collector>
32
+      <usages-collector id="statistics.file.types.open">
33
+        <counts>
34
+          <entry key="CLASS" value="8" />
35
+          <entry key="JAVA" value="9" />
36
+          <entry key="XML" value="1" />
37
+        </counts>
38
+      </usages-collector>
39
+      <usages-collector id="statistics.file.extensions.edit">
40
+        <counts>
41
+          <entry key="java" value="10760" />
42
+          <entry key="xml" value="2" />
43
+        </counts>
44
+      </usages-collector>
45
+      <usages-collector id="statistics.file.types.edit">
46
+        <counts>
47
+          <entry key="JAVA" value="10760" />
48
+          <entry key="XML" value="2" />
49
+        </counts>
50
+      </usages-collector>
51
+    </session>
52
+  </component>
53
+  <component name="FileEditorManager">
54
+    <leaf>
55
+      <file pinned="false" current-in-tab="false">
56
+        <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
57
+          <provider selected="true" editor-type-id="text-editor">
58
+            <state relative-caret-position="323">
59
+              <caret line="255" lean-forward="true" selection-start-line="255" selection-end-line="255" />
60
+              <folding>
61
+                <element signature="e#5029#5030#0" expanded="true" />
62
+                <element signature="e#5081#5082#0" expanded="true" />
63
+              </folding>
64
+            </state>
65
+          </provider>
66
+        </entry>
67
+      </file>
68
+      <file pinned="false" current-in-tab="true">
69
+        <entry file="file://$PROJECT_DIR$/src/test/java/ArrazTest.java">
70
+          <provider selected="true" editor-type-id="text-editor">
71
+            <state relative-caret-position="238">
72
+              <caret line="504" column="40" selection-start-line="504" selection-start-column="40" selection-end-line="504" selection-end-column="40" />
73
+              <folding>
74
+                <element signature="imports" expanded="true" />
75
+              </folding>
76
+            </state>
77
+          </provider>
78
+        </entry>
79
+      </file>
80
+    </leaf>
81
+  </component>
82
+  <component name="FileTemplateManagerImpl">
83
+    <option name="RECENT_TEMPLATES">
84
+      <list>
85
+        <option value="Class" />
86
+      </list>
87
+    </option>
88
+  </component>
89
+  <component name="Git.Settings">
90
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
91
+  </component>
92
+  <component name="IdeDocumentHistory">
93
+    <option name="CHANGED_PATHS">
94
+      <list>
95
+        <option value="$PROJECT_DIR$/pom.xml" />
96
+        <option value="$PROJECT_DIR$/src/main/java/OddEven.java" />
97
+        <option value="$PROJECT_DIR$/src/main/java/MinMax.java" />
98
+        <option value="$PROJECT_DIR$/src/test/java/ArrazTest.java" />
99
+        <option value="$PROJECT_DIR$/src/main/java/Arraz.java" />
100
+      </list>
101
+    </option>
102
+  </component>
103
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
104
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
105
+  <component name="JsGulpfileManager">
106
+    <detection-done>true</detection-done>
107
+    <sorting>DEFINITION_ORDER</sorting>
108
+  </component>
109
+  <component name="ProjectFrameBounds">
110
+    <option name="x" value="12" />
111
+    <option name="y" value="23" />
112
+    <option name="width" value="1268" />
113
+    <option name="height" value="712" />
114
+  </component>
115
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
116
+  <component name="ProjectView">
117
+    <navigator proportions="" version="1">
118
+      <foldersAlwaysOnTop value="true" />
119
+    </navigator>
120
+    <panes>
121
+      <pane id="PackagesPane" />
122
+      <pane id="ProjectPane">
123
+        <subPane>
124
+          <expand>
125
+            <path>
126
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
127
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
128
+            </path>
129
+            <path>
130
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
131
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
132
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
133
+            </path>
134
+            <path>
135
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
136
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
137
+              <item name="src" type="462c0819:PsiDirectoryNode" />
138
+            </path>
139
+            <path>
140
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
141
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
142
+              <item name="src" type="462c0819:PsiDirectoryNode" />
143
+              <item name="main" type="462c0819:PsiDirectoryNode" />
144
+            </path>
145
+            <path>
146
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
147
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
148
+              <item name="src" type="462c0819:PsiDirectoryNode" />
149
+              <item name="main" type="462c0819:PsiDirectoryNode" />
150
+              <item name="java" type="462c0819:PsiDirectoryNode" />
151
+            </path>
152
+            <path>
153
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
154
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
155
+              <item name="src" type="462c0819:PsiDirectoryNode" />
156
+              <item name="test" type="462c0819:PsiDirectoryNode" />
157
+            </path>
158
+            <path>
159
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
160
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
161
+              <item name="src" type="462c0819:PsiDirectoryNode" />
162
+              <item name="test" type="462c0819:PsiDirectoryNode" />
163
+              <item name="java" type="462c0819:PsiDirectoryNode" />
164
+            </path>
165
+          </expand>
166
+          <select />
167
+        </subPane>
168
+      </pane>
169
+      <pane id="Scope" />
170
+    </panes>
171
+  </component>
172
+  <component name="PropertiesComponent">
173
+    <property name="WebServerToolWindowFactoryState" value="false" />
174
+    <property name="aspect.path.notification.shown" value="true" />
175
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544381272613" />
176
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
177
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
178
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
179
+    <property name="project.structure.last.edited" value="Modules" />
180
+    <property name="project.structure.proportion" value="0.0" />
181
+    <property name="project.structure.side.proportion" value="0.2" />
182
+    <property name="settings.editor.selected.configurable" value="editor.preferences.fonts.default" />
183
+  </component>
184
+  <component name="RecentsManager">
185
+    <key name="CreateClassDialog.RecentsKey">
186
+      <recent name="" />
187
+    </key>
188
+  </component>
189
+  <component name="RunDashboard">
190
+    <option name="ruleStates">
191
+      <list>
192
+        <RuleState>
193
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
194
+        </RuleState>
195
+        <RuleState>
196
+          <option name="name" value="StatusDashboardGroupingRule" />
197
+        </RuleState>
198
+      </list>
199
+    </option>
200
+  </component>
201
+  <component name="RunManager" selected="JUnit.ArrazTest.test2makeMeACopyPlease">
202
+    <configuration name="ArrazTest.findSecondSmallestValueFromArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
203
+      <module name="arraz" />
204
+      <option name="PACKAGE_NAME" value="" />
205
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
206
+      <option name="METHOD_NAME" value="findSecondSmallestValueFromArray" />
207
+      <option name="TEST_OBJECT" value="method" />
208
+      <method v="2">
209
+        <option name="Make" enabled="true" />
210
+      </method>
211
+    </configuration>
212
+    <configuration name="ArrazTest.test1makeMeACopyPlease" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
213
+      <module name="arraz" />
214
+      <option name="PACKAGE_NAME" value="" />
215
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
216
+      <option name="METHOD_NAME" value="test1makeMeACopyPlease" />
217
+      <option name="TEST_OBJECT" value="method" />
218
+      <method v="2">
219
+        <option name="Make" enabled="true" />
220
+      </method>
221
+    </configuration>
222
+    <configuration name="ArrazTest.test1theTotalofTensIs30" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
223
+      <module name="arraz" />
224
+      <option name="PACKAGE_NAME" value="" />
225
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
226
+      <option name="METHOD_NAME" value="test1theTotalofTensIs30" />
227
+      <option name="TEST_OBJECT" value="method" />
228
+      <method v="2">
229
+        <option name="Make" enabled="true" />
230
+      </method>
231
+    </configuration>
232
+    <configuration name="ArrazTest.test2makeMeACopyPlease" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
233
+      <module name="arraz" />
234
+      <option name="PACKAGE_NAME" value="" />
235
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
236
+      <option name="METHOD_NAME" value="test2makeMeACopyPlease" />
237
+      <option name="TEST_OBJECT" value="method" />
238
+      <method v="2">
239
+        <option name="Make" enabled="true" />
240
+      </method>
241
+    </configuration>
242
+    <configuration name="ArrazTest.test2theTotalofTensIs30" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
243
+      <module name="arraz" />
244
+      <option name="PACKAGE_NAME" value="" />
245
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
246
+      <option name="METHOD_NAME" value="test2theTotalofTensIs30" />
247
+      <option name="TEST_OBJECT" value="method" />
248
+      <method v="2">
249
+        <option name="Make" enabled="true" />
250
+      </method>
251
+    </configuration>
252
+    <list>
253
+      <item itemvalue="JUnit.ArrazTest.test1theTotalofTensIs30" />
254
+      <item itemvalue="JUnit.ArrazTest.test2theTotalofTensIs30" />
255
+      <item itemvalue="JUnit.ArrazTest.findSecondSmallestValueFromArray" />
256
+      <item itemvalue="JUnit.ArrazTest.test1makeMeACopyPlease" />
257
+      <item itemvalue="JUnit.ArrazTest.test2makeMeACopyPlease" />
258
+    </list>
259
+    <recent_temporary>
260
+      <list>
261
+        <item itemvalue="JUnit.ArrazTest.test2makeMeACopyPlease" />
262
+        <item itemvalue="JUnit.ArrazTest.test1makeMeACopyPlease" />
263
+        <item itemvalue="JUnit.ArrazTest.findSecondSmallestValueFromArray" />
264
+        <item itemvalue="JUnit.ArrazTest.test2theTotalofTensIs30" />
265
+        <item itemvalue="JUnit.ArrazTest.test1theTotalofTensIs30" />
266
+      </list>
267
+    </recent_temporary>
268
+  </component>
269
+  <component name="SvnConfiguration">
270
+    <configuration />
271
+  </component>
272
+  <component name="TaskManager">
273
+    <task active="true" id="Default" summary="Default task">
274
+      <changelist id="5cac5bc1-694f-45c1-abd2-3cc9bc280198" name="Default Changelist" comment="" />
275
+      <created>1544046672442</created>
276
+      <option name="number" value="Default" />
277
+      <option name="presentableId" value="Default" />
278
+      <updated>1544046672442</updated>
279
+      <workItem from="1544046673886" duration="39025000" />
280
+    </task>
281
+    <servers />
282
+  </component>
283
+  <component name="TestHistory">
284
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 12h 57m 11s.xml">
285
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
286
+    </history-entry>
287
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 33m 36s.xml">
288
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
289
+    </history-entry>
290
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 33m 51s.xml">
291
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
292
+    </history-entry>
293
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 34m 51s.xml">
294
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
295
+    </history-entry>
296
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 36m 39s.xml">
297
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
298
+    </history-entry>
299
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 37m 11s.xml">
300
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
301
+    </history-entry>
302
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 37m 33s.xml">
303
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
304
+    </history-entry>
305
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 39m 42s.xml">
306
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
307
+    </history-entry>
308
+    <history-entry file="ArrazTest_findSecondSmallestValueFromArray - 2018.12.09 at 13h 39m 50s.xml">
309
+      <configuration name="ArrazTest.findSecondSmallestValueFromArray" configurationId="JUnit" />
310
+    </history-entry>
311
+    <history-entry file="ArrazTest_test1makeMeACopyPlease - 2018.12.09 at 13h 43m 11s.xml">
312
+      <configuration name="ArrazTest.test1makeMeACopyPlease" configurationId="JUnit" />
313
+    </history-entry>
314
+  </component>
315
+  <component name="TimeTrackingManager">
316
+    <option name="totallyTimeSpent" value="39025000" />
317
+  </component>
318
+  <component name="ToolWindowManager">
319
+    <frame x="12" y="23" width="1268" height="712" extended-state="0" />
320
+    <editor active="true" />
321
+    <layout>
322
+      <window_info id="Image Layers" />
323
+      <window_info id="Designer" />
324
+      <window_info id="UI Designer" />
325
+      <window_info id="Capture Tool" />
326
+      <window_info id="Favorites" side_tool="true" />
327
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24959217" />
328
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
329
+      <window_info anchor="bottom" id="Messages" weight="0.32903227" />
330
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
331
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
332
+      <window_info anchor="bottom" id="Terminal" />
333
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
334
+      <window_info anchor="bottom" id="Message" order="0" />
335
+      <window_info anchor="bottom" id="Find" order="1" />
336
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32903227" />
337
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
338
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
339
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
340
+      <window_info anchor="bottom" id="TODO" order="6" />
341
+      <window_info anchor="right" id="Palette" />
342
+      <window_info anchor="right" id="Theme Preview" />
343
+      <window_info anchor="right" id="Capture Analysis" />
344
+      <window_info anchor="right" id="Palette&#9;" />
345
+      <window_info anchor="right" id="Database" />
346
+      <window_info anchor="right" id="Maven Projects" />
347
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
348
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
349
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
350
+    </layout>
351
+  </component>
352
+  <component name="TypeScriptGeneratedFilesManager">
353
+    <option name="version" value="1" />
354
+  </component>
355
+  <component name="VcsContentAnnotationSettings">
356
+    <option name="myLimit" value="2678400000" />
357
+  </component>
358
+  <component name="editorHistoryManager">
359
+    <entry file="file://$PROJECT_DIR$/src/main/java/OddEven.java">
360
+      <provider selected="true" editor-type-id="text-editor">
361
+        <state relative-caret-position="272">
362
+          <caret line="16" column="21" lean-forward="true" selection-start-line="16" selection-start-column="21" selection-end-line="16" selection-end-column="21" />
363
+          <folding>
364
+            <element signature="e#156#157#0" expanded="true" />
365
+            <element signature="e#183#184#0" expanded="true" />
366
+            <element signature="e#212#213#0" expanded="true" />
367
+            <element signature="e#240#241#0" expanded="true" />
368
+          </folding>
369
+        </state>
370
+      </provider>
371
+    </entry>
372
+    <entry file="file://$PROJECT_DIR$/pom.xml">
373
+      <provider selected="true" editor-type-id="text-editor">
374
+        <state relative-caret-position="238">
375
+          <caret line="14" column="21" selection-start-line="14" selection-start-column="21" selection-end-line="14" selection-end-column="21" />
376
+        </state>
377
+      </provider>
378
+    </entry>
379
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/runners/model/FrameworkMethod.class">
380
+      <provider selected="true" editor-type-id="text-editor">
381
+        <state relative-caret-position="111">
382
+          <caret line="31" selection-start-line="31" selection-end-line="31" />
383
+        </state>
384
+      </provider>
385
+    </entry>
386
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/Assert.class">
387
+      <provider selected="true" editor-type-id="text-editor">
388
+        <state relative-caret-position="128">
389
+          <caret line="72" selection-start-line="72" selection-end-line="72" />
390
+          <folding>
391
+            <element signature="e#8323#8324#0" expanded="true" />
392
+            <element signature="e#8383#8384#0" expanded="true" />
393
+          </folding>
394
+        </state>
395
+      </provider>
396
+    </entry>
397
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/internal/runners/model/ReflectiveCallable.class">
398
+      <provider selected="true" editor-type-id="text-editor">
399
+        <state relative-caret-position="204">
400
+          <caret line="17" selection-start-line="17" selection-end-line="17" />
401
+        </state>
402
+      </provider>
403
+    </entry>
404
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/lang/String.java">
405
+      <provider selected="true" editor-type-id="text-editor">
406
+        <state relative-caret-position="111">
407
+          <caret line="1610" selection-start-line="1610" selection-end-line="1610" />
408
+          <folding>
409
+            <element signature="e#62916#62917#0" expanded="true" />
410
+          </folding>
411
+        </state>
412
+      </provider>
413
+    </entry>
414
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/rt.jar!/sun/misc/Launcher.class">
415
+      <provider selected="true" editor-type-id="text-editor">
416
+        <state relative-caret-position="111">
417
+          <caret line="235" selection-start-line="235" selection-end-line="235" />
418
+        </state>
419
+      </provider>
420
+    </entry>
421
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/lang/ClassLoader.java">
422
+      <provider selected="true" editor-type-id="text-editor">
423
+        <state relative-caret-position="115">
424
+          <caret line="356" selection-start-line="356" selection-end-line="356" />
425
+        </state>
426
+      </provider>
427
+    </entry>
428
+    <entry file="file://$PROJECT_DIR$/src/main/java/MinMax.java">
429
+      <provider selected="true" editor-type-id="text-editor">
430
+        <state relative-caret-position="192">
431
+          <caret line="12" selection-start-line="12" selection-end-line="12" />
432
+          <folding>
433
+            <element signature="e#140#141#0" expanded="true" />
434
+            <element signature="e#166#167#0" expanded="true" />
435
+            <element signature="e#219#220#0" expanded="true" />
436
+          </folding>
437
+        </state>
438
+      </provider>
439
+    </entry>
440
+    <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
441
+      <provider selected="true" editor-type-id="text-editor">
442
+        <state relative-caret-position="323">
443
+          <caret line="255" lean-forward="true" selection-start-line="255" selection-end-line="255" />
444
+          <folding>
445
+            <element signature="e#5029#5030#0" expanded="true" />
446
+            <element signature="e#5081#5082#0" expanded="true" />
447
+          </folding>
448
+        </state>
449
+      </provider>
450
+    </entry>
451
+    <entry file="file://$PROJECT_DIR$/src/test/java/ArrazTest.java">
452
+      <provider selected="true" editor-type-id="text-editor">
453
+        <state relative-caret-position="238">
454
+          <caret line="504" column="40" selection-start-line="504" selection-start-column="40" selection-end-line="504" selection-end-column="40" />
455
+          <folding>
456
+            <element signature="imports" expanded="true" />
457
+          </folding>
458
+        </state>
459
+      </provider>
460
+    </entry>
461
+  </component>
462
+  <component name="masterDetails">
463
+    <states>
464
+      <state key="ArtifactsStructureConfigurable.UI">
465
+        <settings>
466
+          <artifact-editor />
467
+          <splitter-proportions>
468
+            <option name="proportions">
469
+              <list>
470
+                <option value="0.2" />
471
+              </list>
472
+            </option>
473
+          </splitter-proportions>
474
+        </settings>
475
+      </state>
476
+      <state key="FacetStructureConfigurable.UI">
477
+        <settings>
478
+          <last-edited>No facets are configured</last-edited>
479
+          <splitter-proportions>
480
+            <option name="proportions">
481
+              <list>
482
+                <option value="0.2" />
483
+              </list>
484
+            </option>
485
+          </splitter-proportions>
486
+        </settings>
487
+      </state>
488
+      <state key="GlobalLibrariesConfigurable.UI">
489
+        <settings>
490
+          <splitter-proportions>
491
+            <option name="proportions">
492
+              <list>
493
+                <option value="0.2" />
494
+              </list>
495
+            </option>
496
+          </splitter-proportions>
497
+        </settings>
498
+      </state>
499
+      <state key="JdkListConfigurable.UI">
500
+        <settings>
501
+          <last-edited>1.8</last-edited>
502
+          <splitter-proportions>
503
+            <option name="proportions">
504
+              <list>
505
+                <option value="0.2" />
506
+              </list>
507
+            </option>
508
+          </splitter-proportions>
509
+        </settings>
510
+      </state>
511
+      <state key="ModuleStructureConfigurable.UI">
512
+        <settings>
513
+          <last-edited>arraz</last-edited>
514
+          <splitter-proportions>
515
+            <option name="proportions">
516
+              <list>
517
+                <option value="0.2" />
518
+                <option value="0.6" />
519
+              </list>
520
+            </option>
521
+          </splitter-proportions>
522
+        </settings>
523
+      </state>
524
+      <state key="ProjectJDKs.UI">
525
+        <settings>
526
+          <last-edited>1.8</last-edited>
527
+          <splitter-proportions>
528
+            <option name="proportions">
529
+              <list>
530
+                <option value="0.2" />
531
+              </list>
532
+            </option>
533
+          </splitter-proportions>
534
+        </settings>
535
+      </state>
536
+      <state key="ProjectLibrariesConfigurable.UI">
537
+        <settings>
538
+          <last-edited>Maven: junit:junit:4.12</last-edited>
539
+          <splitter-proportions>
540
+            <option name="proportions">
541
+              <list>
542
+                <option value="0.2" />
543
+              </list>
544
+            </option>
545
+          </splitter-proportions>
546
+        </settings>
547
+      </state>
548
+    </states>
549
+  </component>
550
+</project>

+ 4
- 4
arraz/arraz.iml Bestand weergeven

@@ -1,16 +1,16 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
-  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
4 4
     <output url="file://$MODULE_DIR$/target/classes" />
5 5
     <output-test url="file://$MODULE_DIR$/target/test-classes" />
6 6
     <content url="file://$MODULE_DIR$">
7 7
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9 8
       <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10 9
       <excludeFolder url="file://$MODULE_DIR$/target" />
11 10
     </content>
12
-    <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
11
+    <orderEntry type="inheritedJdk" />
13 12
     <orderEntry type="sourceFolder" forTests="false" />
14
-    <orderEntry type="library" name="Maven: junit:junit:4.0" level="project" />
13
+    <orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
14
+    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15 15
   </component>
16 16
 </module>

+ 1
- 1
arraz/pom.xml Bestand weergeven

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

+ 257
- 0
arraz/src/main/java/Arraz.java Bestand weergeven

@@ -1,2 +1,259 @@
1
+import java.util.*;
2
+
1 3
 public class Arraz {
4
+    private int[] spiffyHandyIntArray = new int[]{4, 5, 102, 6, -7, 12, -32, 92, 8};
5
+
6
+    public int sumOfIntArray(int[] numsArray) {
7
+        int sum = 0;
8
+        for (int i = 0; i < numsArray.length; i++) {
9
+            sum += numsArray[i];
10
+        }
11
+        return sum;
12
+    }
13
+
14
+    public Double sumOfDoubleArray(Double[] doubleArray) {
15
+        Double sum = 0.0;
16
+        for (int i = 0; i < doubleArray.length; i++) {
17
+            sum += doubleArray[i];
18
+        }
19
+        return sum;
20
+    }
21
+
22
+    public int averageOfIntArray(int[] intArray) {
23
+        int average = (sumOfIntArray(intArray)) / intArray.length;
24
+        return average;
25
+    }
26
+
27
+
28
+    public Double averageOfDoubleArray(Double[] doubleArray) {
29
+        Double average = (sumOfDoubleArray(doubleArray)) / doubleArray.length;
30
+        return average;
31
+    }
32
+
33
+    public boolean containsValue(int[] intArray, int numberToCheck) {
34
+        for (int i = 0; i < intArray.length; i++) {
35
+            if (numberToCheck == intArray[i]) {
36
+                return true;
37
+            }
38
+        }
39
+        return false;
40
+    }
41
+
42
+
43
+    public int[] reverseArray(int[] ints) {
44
+        int newIndex = 0;
45
+        int[] reversedArray = new int[ints.length];
46
+        for (int i = ints.length - 1; i >= 0; i--) {
47
+            reversedArray[newIndex] = ints[i];
48
+            newIndex++;
49
+        }
50
+        return reversedArray;
51
+    }
52
+
53
+
54
+    public OddEven getOddEvensOfArray(int[] ints) {
55
+        int odds = 0;
56
+        int evens = 0;
57
+        for (int i = 0; i < ints.length; i++) {
58
+            if (ints[i] % 2 == 0) {
59
+                evens++;
60
+            } else {
61
+                odds++;
62
+            }
63
+        }
64
+        OddEven oe = new OddEven(odds, evens);
65
+        return oe;
66
+    }
67
+
68
+
69
+    public int findIndexOf(int[] ints, int valueToFindIndexOf) {
70
+        int index = 0;
71
+        for (int i = 0; i < ints.length; i++) {
72
+            if (ints[i] == valueToFindIndexOf) {
73
+                index = i;
74
+            }
75
+        }
76
+        return index;
77
+    }
78
+
79
+    public Integer[] copyArrayByIterator(Integer[] ints) {
80
+        Integer[] newbie = new Integer[ints.length];
81
+        int index = 0;
82
+        Iterator<Integer> integerIterator = Arrays.asList(ints).iterator();
83
+        while (integerIterator.hasNext()) {
84
+            newbie[index] = integerIterator.next();
85
+            index++;
86
+        }
87
+        return newbie;
88
+    }
89
+
90
+    public int[] copyArrayByLoop(int[] inty) {
91
+        int[] newArray = new int[inty.length];
92
+        for (int i = 0; i < inty.length; i++) {
93
+            newArray[i] = inty[i];
94
+        }
95
+        return newArray;
96
+    }
97
+
98
+    public int[] removeElementFromArray(int[] intArray, int valueToRemove) {
99
+        int begin = 0;
100
+        int[] newArray = new int[intArray.length - 1];
101
+        for (int i = 0; i < intArray.length; i++) {
102
+            if (intArray[i] != valueToRemove) {
103
+                newArray[begin] = intArray[i];
104
+                begin++;
105
+            }
106
+        }
107
+        return newArray;
108
+    }
109
+
110
+    public int[] insertIntoArrayAt(int[] ints, int position, int value) {
111
+        int newIndex = 0;
112
+        int[] newArray = new int[ints.length + 1];
113
+        for (int i = 0; i < newArray.length - 1; i++) {
114
+            if (i == position) {
115
+                newArray[newIndex] = value;
116
+                newIndex++;
117
+            }
118
+            newArray[newIndex] = ints[i];
119
+            newIndex++;
120
+        }
121
+        return newArray;
122
+    }
123
+
124
+    public MinMax findMaxMinOfArray(int[] intArray) {
125
+        int max = intArray[0];
126
+        int min = intArray[0];
127
+        for (int i = 0; i < intArray.length; i++) {
128
+
129
+            if (intArray[i] > max) {
130
+                max = intArray[i];
131
+            } else if (intArray[i] < min) {
132
+                min = intArray[i];
133
+            }
134
+        }
135
+        return new MinMax(max, min);
136
+    }
137
+
138
+    public Integer countDupes(Integer[] ints) {
139
+        Arrays.sort(ints);
140
+        int counter = 0;
141
+        for (int i = 0; i < ints.length; i++) {
142
+            for (int j = i + 1; j < ints.length; j++) {
143
+                if (ints[j].equals(ints[i])) {
144
+                    counter++;
145
+                }
146
+            }
147
+        }
148
+        return counter;
149
+    }
150
+
151
+
152
+    public Integer[] removeDupesFromArray(Integer[] ints) {
153
+        Integer[] newArray = new Integer[ints.length - countDupes(ints)];
154
+        int newIndex = 0;
155
+        for (int i = 0; i < ints.length; i++) {
156
+            if (ints[i] != ints[i + 1]) {
157
+                newArray[newIndex] = ints[i];
158
+                newIndex++;
159
+            }
160
+        }
161
+
162
+        return newArray;
163
+    }
164
+
165
+    public Double find2ndLargestValueFromArray(Double[] doubles) {
166
+        Double highest = doubles[0];
167
+        Double secondHightest = 0.0;
168
+        for (int i = 0; i < doubles.length; i++) {
169
+            if (doubles[i] > highest) {
170
+                secondHightest = highest;
171
+                highest = doubles[i];
172
+            } else
173
+                secondHightest = doubles[i];
174
+        }
175
+        return secondHightest;
176
+    }
177
+
178
+
179
+    public void makeMeAnArrayListFromArray(int[] ints) {
180
+        ArrayList arrayList = new ArrayList(Arrays.asList(ints));
181
+    }
182
+
183
+
184
+    public boolean check2ArraysForEqual(int[] intArray1, int[] intArray2) {
185
+        if (Arrays.equals(intArray1, intArray2)) {
186
+            return true;
187
+        } else
188
+            return false;
189
+    }
190
+
191
+
192
+    public int averageArrayWithoutMaxMin(int[] ints) {
193
+        int max = findMaxMinOfArray(ints).getMax();
194
+        int min = findMaxMinOfArray(ints).getMin();
195
+        int[] newerArray = new int[0];
196
+        while (max > min) {
197
+            int[] newArray = removeElementFromArray(ints, max);
198
+            newerArray = removeElementFromArray(newArray, min);
199
+            break;
200
+        }
201
+        return averageOfIntArray(newerArray);
202
+    }
203
+
204
+
205
+    public boolean arrayHas65and77(int[] ints) {
206
+        for (int i = 0; i < ints.length; i++) {
207
+            if (ints[i] == 65 | ints[i] == 77) {
208
+                for (int j = i+1; j < ints.length; j++) {
209
+                    if (ints[j] == 77 | ints[j] == 65) {
210
+                        return true;
211
+                    }
212
+                }
213
+            }
214
+        }
215
+        return false;
216
+    }
217
+
218
+
219
+    public boolean theTotalOfTensIs30(Integer[] ints) {
220
+        int counter = (int) countDupes(ints);
221
+        int [] newArray = new int[counter];
222
+        int index = 0;
223
+        for (int i = 0; i < ints.length; i++) {
224
+            if (ints[i] == 10) {
225
+                newArray[index] = ints[i];
226
+                index++;
227
+            }
228
+            if (sumOfIntArray(newArray) == 30) {
229
+                return true;
230
+            }
231
+         }
232
+        return false;
233
+    }
234
+
235
+    public int findSecondSmallValueFromArray(int [] ints) {
236
+        int secondSmallest = 1;
237
+        int smallest = findMaxMinOfArray(ints).getMin();
238
+        for (int i = 0; i < ints.length; i++) {
239
+            if (ints[i] > smallest && smallest != secondSmallest) {
240
+                secondSmallest = ints[i];
241
+             }
242
+        }
243
+        return secondSmallest;
244
+    }
245
+
246
+
247
+    public int[] makeMeACopyPlease(int[] ints) {
248
+        int [] newArray = copyArrayByLoop(ints);
249
+        return reverseArray(newArray);
250
+    }
2 251
 }
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+

+ 18
- 0
arraz/src/main/java/MinMax.java Bestand weergeven

@@ -0,0 +1,18 @@
1
+public class MinMax {
2
+
3
+    public MinMax(int max, int min) {
4
+        this.max = max;
5
+        this.min = min;
6
+    }
7
+
8
+    public int getMax() {
9
+        return max;
10
+    }
11
+
12
+    public int getMin() {
13
+        return min;
14
+    }
15
+
16
+    public int max;
17
+    public int min;
18
+}

+ 19
- 0
arraz/src/main/java/OddEven.java Bestand weergeven

@@ -0,0 +1,19 @@
1
+public class OddEven {
2
+
3
+    public OddEven(int odds, int evens) {
4
+        this.odds = odds;
5
+        this.evens = evens;
6
+    }
7
+
8
+    public int getOdds() {
9
+        return odds;
10
+    }
11
+
12
+    public int getEvens() {
13
+        return evens;
14
+    }
15
+
16
+    public int odds;
17
+    public int evens;
18
+
19
+}

+ 517
- 1
arraz/src/test/java/ArrazTest.java Bestand weergeven

@@ -1,5 +1,521 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+
5
+import java.util.ArrayList;
6
+import java.util.Arrays;
7
+import java.util.List;
8
+
1 9
 import static org.junit.Assert.*;
2 10
 
3 11
 public class ArrazTest {
12
+    Arraz arraz = new Arraz();
13
+
14
+    @Test
15
+    public void test1SumOfIntArray() {
16
+        //given
17
+        int [] testNums = {1, 3, 5, 8};
18
+        int expected = 17;
19
+        //when
20
+        int actual = arraz.sumOfIntArray(testNums);
21
+        //then
22
+        Assert.assertEquals(expected, actual);
23
+    }
24
+
25
+    @Test
26
+    public void test2SumOfIntArray() {
27
+        //given
28
+        int [] testNumbers = {0};
29
+        int expected = 0;
30
+        //when
31
+        int actual = arraz.sumOfIntArray(testNumbers);
32
+        //then
33
+        Assert.assertEquals(expected, actual);
34
+    }
35
+
36
+    @Test
37
+    public void test1SumOfDoubleArray() {
38
+        //given
39
+        Double[] spiffyHandyDoubleArray = new Double[] {1.0, 0.5, 3.6, 38.4, 17.3, 62.0, 9.0, 3.375, 0.0, 3.14159};
40
+        Double expected = 138.31659;
41
+        //when
42
+        Double actual = arraz.sumOfDoubleArray(spiffyHandyDoubleArray);
43
+        //then
44
+        Assert.assertEquals(expected, actual, .01);
45
+    }
46
+
47
+    @Test
48
+    public void test2SumOfDoubleArray() {
49
+        //given
50
+        Double[] doublyArray = new Double[] {12.432, 34.03, 12.0, 10.0};
51
+        Double expected = 68.462;
52
+        //when
53
+        Double actual = arraz.sumOfDoubleArray(doublyArray);
54
+        //then
55
+        Assert.assertEquals(expected, actual, .001);
56
+    }
57
+
58
+    @Test
59
+    public void test1AverageOfIntArray() {
60
+        //given
61
+        int [] intArray = {1, 3, 5, 7};
62
+        int expected = 4;
63
+        //when
64
+        int actual = arraz.averageOfIntArray(intArray);
65
+        //then
66
+        Assert.assertEquals(expected, actual);
67
+    }
68
+
69
+    @Test
70
+    public void test2AverageOfIntArray() {
71
+        //given
72
+        int [] intArray = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 50};
73
+        int expected = 9;
74
+        //when
75
+        int actual = arraz.averageOfIntArray(intArray);
76
+        //then
77
+        Assert.assertEquals(expected, actual);
78
+    }
79
+
80
+    @Test
81
+    public void test1AverageofDoubleArray() {
82
+        //given
83
+        Double [] doubleArray = {1.0, .5, .3, 2.95};
84
+        Double expected = 1.1875;
85
+        //when
86
+        Double actual = arraz.averageOfDoubleArray(doubleArray);
87
+        //then
88
+        Assert.assertEquals(expected, actual, .01);
89
+    }
90
+
91
+    @Test
92
+    public void test2AverageofDoubleArray() {
93
+        //given
94
+        Double [] tinyArray = {.000003, .03};
95
+        Double expected = .0150015;
96
+        //when
97
+        Double actual = arraz.averageOfDoubleArray(tinyArray);
98
+        //then
99
+        Assert.assertEquals(expected, actual, .001);
100
+    }
101
+
102
+    @Test
103
+    public void test1ContainsValue() {
104
+        //given
105
+        int [] inty = {1, 2, 3, 6, 7, 8};
106
+        int numberToCheck = 5;
107
+        boolean expected = false;
108
+        //when
109
+        boolean actual = arraz.containsValue(inty, numberToCheck);
110
+        //then
111
+        Assert.assertEquals(expected, actual);
112
+    }
113
+
114
+    @Test
115
+    public void test2ContainsValue() {
116
+        //given
117
+        int [] inty = {1, 2, 3, 6, 7, 8};
118
+        int numberToCheck = 3;
119
+        boolean expected = true;
120
+        //when
121
+        boolean actual = arraz.containsValue(inty, numberToCheck);
122
+        //then
123
+        Assert.assertEquals(expected, actual);
124
+    }
125
+
126
+    @Test
127
+    public void test1reverseArray() {
128
+        //given
129
+        int [] ints = {1, 2, 3, 4, 5, 6};
130
+        int [] expected = {6, 5, 4, 3, 2, 1};
131
+        //when
132
+        int [] actual = arraz.reverseArray(ints);
133
+        //then
134
+        Assert.assertArrayEquals(expected, actual);
135
+    }
136
+
137
+    @Test
138
+    public void test2reverseArray() {
139
+        //given
140
+        int[] spiffyHandyIntArray = new int[] {4,5,102,6,-7,12,};
141
+        int [] expected = {12, -7, 6, 102, 5, 4};
142
+        //when
143
+        int [] actual = arraz.reverseArray(spiffyHandyIntArray);
144
+        //then
145
+        Assert.assertArrayEquals(expected, actual);
146
+    }
147
+
148
+    @Test
149
+    public void test1getOddEvensOfArray() {
150
+        //given
151
+        int [] spiffy = {1, 2, 3, 4};
152
+        int expected = 2;
153
+        //when
154
+        OddEven oe = arraz.getOddEvensOfArray(spiffy);
155
+        int actual = oe.getEvens();
156
+        //then
157
+        Assert.assertEquals(expected, actual);
158
+    }
159
+
160
+    @Test
161
+    public void test2getOddEvensOfArray() {
162
+        //given
163
+        int [] spiffy = {4, 5, 6, 5, 4, 5, 6 ,7};
164
+        int expected = 4;
165
+        //when
166
+        OddEven oe = arraz.getOddEvensOfArray(spiffy);
167
+        int actual = oe.getOdds();
168
+        //then
169
+        Assert.assertEquals(expected, actual);
170
+    }
171
+
172
+    @Test
173
+    public void test1FindIndexOf() {
174
+        //given
175
+        int [] spiffy = {4, 5, 6, 5, 5, 6 ,7};
176
+        int expected = 0;
177
+        //when
178
+        int actual = arraz.findIndexOf(spiffy, 4);
179
+        //then
180
+        Assert.assertEquals(expected, actual);
181
+    }
182
+
183
+    @Test
184
+    public void test2FindIndexOf() {
185
+        //given
186
+        int [] spiffy = {1, 2, 3, 4, 5, 6, 22};
187
+        int expected = 6;
188
+        //when
189
+        int actual = arraz.findIndexOf(spiffy, 22);
190
+        //then
191
+        Assert.assertEquals(expected, actual);
192
+    }
193
+
194
+    @Test
195
+    public void test1CopyArrayByIterator() {
196
+        //given
197
+        Integer [] oldArray = {1, 2, 3, 4};
198
+        Integer [] expected = {1, 2, 3, 4};
199
+        //when
200
+        Integer[] actual = arraz.copyArrayByIterator(oldArray);
201
+        //
202
+        Assert.assertArrayEquals(expected, actual);
203
+    }
204
+
205
+    @Test
206
+    public void test2CopyArrayByIterator() {
207
+        //given
208
+        Integer [] oldArray = {33, 4, 2, 4, 5, 12, 12, 12, 12, 12, 14};
209
+        Integer [] expected = {33, 4, 2, 4, 5, 12, 12, 12, 12, 12, 14};
210
+        //when
211
+        Integer[] actual = arraz.copyArrayByIterator(oldArray);
212
+        //then
213
+        Assert.assertArrayEquals(expected, actual);
214
+    }
215
+
216
+    @Test
217
+    public void test1copyArrayByLoop() {
218
+        //given
219
+        int [] oldArray = {12, 3, 4, 5};
220
+        int [] expected = {12, 3, 4, 5};
221
+        //when
222
+        int [] actual = arraz.copyArrayByLoop(oldArray);
223
+        //then
224
+        Assert.assertArrayEquals(expected, actual);
225
+    }
226
+
227
+    @Test
228
+    public void test2copyArrayByLoop() {
229
+        //given
230
+        int [] oldArray = {-3, -4, 12, 3};
231
+        int [] expected = {-3, -4, 12, 3};
232
+        //when
233
+        int [] actual = arraz.copyArrayByLoop(oldArray);
234
+        //then
235
+        Assert.assertArrayEquals(expected, actual);
236
+    }
237
+
238
+    @Test
239
+    public void test1RemoveElementFromArray() {
240
+        //given
241
+        int [] intArray = {1, 2, 3, 4};
242
+        int valueToRemove = 2;
243
+        int [] newArray = {1, 3, 4};
244
+        //when
245
+        int [] actual = arraz.removeElementFromArray(intArray, valueToRemove);
246
+        //then
247
+        Assert.assertArrayEquals(newArray, actual);
248
+    }
249
+
250
+
251
+    @Test
252
+    public void test2RemoveElementFromArray() {
253
+        //given
254
+        int [] intArray = {1, 2, 3, 5, 6, 10};
255
+        int valueToRemove = 3;
256
+        int [] newArray = {1, 2, 5, 6, 10};
257
+        //when
258
+        int [] actual = arraz.removeElementFromArray(intArray, valueToRemove);
259
+        //then
260
+        Assert.assertArrayEquals(newArray, actual);
261
+    }
262
+
263
+    @Test
264
+    public void test1InsertIntoArrayAt() {
265
+        //given
266
+        int [] intArray = {1, 2, 4};
267
+        int newIndex = 2;
268
+        int numberToInsert = 3;
269
+        int [] expected = {1, 2, 3, 4};
270
+        //when
271
+        int [] actual = arraz.insertIntoArrayAt(intArray, newIndex, numberToInsert);
272
+        //then
273
+        Assert.assertArrayEquals(expected, actual);
274
+
275
+    }
276
+
277
+    @Test
278
+    public void test2InsertIntoArrayAt() {
279
+        //given
280
+        int [] intArray = {2, 3, 4, 5};
281
+        int newIndex = 0;
282
+        int numberToInsert = 1;
283
+        int [] expected = {1, 2, 3, 4, 5};
284
+        //when
285
+        int [] actual = arraz.insertIntoArrayAt(intArray, newIndex, numberToInsert);
286
+        //then
287
+        Assert.assertArrayEquals(expected, actual);
288
+    }
289
+
290
+    @Test
291
+    public void test1FindMaxMinOfArray() {
292
+        //given
293
+        int [] intArray = {1, 2, 3, 4};
294
+        int expected = 4;
295
+        //when
296
+        MinMax minMax = arraz.findMaxMinOfArray(intArray);
297
+        int actual = minMax.getMax();
298
+        //then
299
+        Assert.assertEquals(expected, actual);
300
+    }
301
+
302
+    @Test
303
+    public void test2FindMaxMinOfArray() {
304
+        //given
305
+        int [] intArray = {1, 2, 3, 4};
306
+        int expected = 1;
307
+        //when
308
+        MinMax minMax = arraz.findMaxMinOfArray(intArray);
309
+        int actual = minMax.getMin();
310
+        //then
311
+        Assert.assertEquals(expected, actual);
312
+    }
313
+
314
+    @Test
315
+    public void test3ScrambledFindMaxMinOfArray() {
316
+        //given
317
+        int [] intArray = {2, 3, 4, 5 , 4, 5, 6, 7};
318
+        int expected = 7;
319
+        //when
320
+        MinMax minMax = arraz.findMaxMinOfArray(intArray);
321
+        int actual = minMax.getMax();
322
+        //then
323
+        Assert.assertEquals(expected, actual);
324
+    }
325
+
326
+    @Test
327
+    public void test1CountDupesFromArray() {
328
+        //given
329
+        Integer [] ints = {1, 2, 3, 4, 4};
330
+        Integer expected = 1;
331
+        //when
332
+        Integer actual = arraz.countDupes(ints);
333
+        //then
334
+        Assert.assertEquals(expected, actual);
335
+    }
336
+
337
+    @Test
338
+    public void test2CountDupesFromArray() {
339
+        //given
340
+        Integer [] ints = {1, 2, 3, 2, 2};
341
+        Integer expected = 1;
342
+        //when
343
+        Integer actual = arraz.countDupes(ints);
344
+        //then
345
+        Assert.assertEquals(expected, actual);
346
+    }
347
+
348
+    @Test
349
+    public void test1RemoveDupesFromArray() {
350
+        //given
351
+        Integer [] ints = {1, 2, 3, 4, 4};
352
+        Integer [] expected = {1, 2, 3};
353
+        //when
354
+        Integer [] actual = arraz.removeDupesFromArray(ints);
355
+        //then
356
+        Assert.assertArrayEquals(expected, actual);
357
+    }
358
+
359
+
360
+    @Test
361
+    public void test1find2ndLargestValueFromArray() {
362
+        //given
363
+        Double [] doubles = {1.0, 2.0, 3.0, 4.0, 5.0};
364
+        Double expected = 4.0;
365
+        //when
366
+        Double actual = arraz.find2ndLargestValueFromArray(doubles);
367
+        //then
368
+        Assert.assertEquals(expected, actual);
369
+    }
370
+
371
+    @Test
372
+    public void test2find2ndLargestValueFromArray() {
373
+        //given
374
+        Double [] doubles = {4.0, 3.0, 2.0, 7.0, 10.0};
375
+        Double expected = 7.0;
376
+        //when
377
+        Double actual = arraz.find2ndLargestValueFromArray(doubles);
378
+        //then
379
+        Assert.assertEquals(expected, actual);
380
+    }
381
+
382
+    @Test
383
+    public void test1makeMeAnArrayListFromArray() {
384
+        //given
385
+        int [] ints = {1, 2, 3, 4, 5};
386
+        //when
387
+        //stuck
388
+    }
389
+
390
+    @Test
391
+    public void test1check2ArraysForEqual() {
392
+        //given
393
+        int [] intArray1 = {1, 2, 3, 4};
394
+        int [] intArray2 = {1, 2, 3, 4};
395
+        //when
396
+        boolean actual = arraz.check2ArraysForEqual(intArray1, intArray2);
397
+        //then
398
+        Assert.assertTrue(actual);
399
+    }
400
+
401
+    @Test
402
+    public void test2check2ArraysForEqual() {
403
+        //given
404
+        int [] intArray1 = {1, 2, 3, 4};
405
+        int [] intArray2 = {1, 3, 4};
406
+        //when
407
+        boolean actual = arraz.check2ArraysForEqual(intArray1, intArray2);
408
+        //then
409
+        Assert.assertFalse(actual);
410
+    }
411
+
412
+    @Test
413
+    public void test1AverageArrayWithoutMaxMin() {
414
+        //given
415
+        int [] ints = {1, 2, 3, 4};
416
+        int expected = 2;
417
+        //when
418
+        int actual = arraz.averageArrayWithoutMaxMin(ints);
419
+        //then
420
+        Assert.assertEquals(expected, actual);
421
+    }
422
+
423
+    @Test
424
+    public void test2AverageArrayWithoutMaxMin() {
425
+        //given
426
+        int [] ints = {1, 4, 5, 7, 8 ,3, 5, 10};
427
+        int expected = 5;
428
+        //when
429
+        int actual = arraz.averageArrayWithoutMaxMin(ints);
430
+        //then
431
+        Assert.assertEquals(expected, actual);
432
+    }
433
+
434
+    @Test
435
+    public void test1arrayHas65and77() {
436
+        //given
437
+        int [] ints = {1, 2, 4, 5, 65, 34};
438
+        boolean expected = false;
439
+        //when
440
+        boolean actual = arraz.arrayHas65and77(ints);
441
+        //then
442
+        Assert.assertEquals(expected, actual);
443
+    }
444
+
445
+    @Test
446
+    public void test2arrayHas65and77() {
447
+        //given
448
+        int [] ints = {1, 2, 65, 77};
449
+        //when
450
+        boolean actual = arraz.arrayHas65and77(ints);
451
+        //then
452
+        Assert.assertTrue(actual);
453
+    }
454
+
455
+    @Test
456
+    public void test3arrayHas65and77() {
457
+        //given
458
+        int [] ints = {1, 77, 40, 65};
459
+        //when
460
+        boolean actual = arraz.arrayHas65and77(ints);
461
+        //then
462
+        Assert.assertTrue(actual);
463
+    }
464
+
465
+    @Test
466
+    public void test1theTotalofTensIs30() {
467
+        //given
468
+        Integer [] ints = {1, 2, 10, 10, 1};
469
+        boolean expected = false;
470
+        //when
471
+        boolean actual = arraz.theTotalOfTensIs30(ints);
472
+        //then
473
+        Assert.assertEquals(expected, actual);
474
+    }
475
+
476
+    @Test
477
+    public void test2theTotalofTensIs30() {
478
+        //given
479
+        Integer [] ints = {1, 10, 10, 10};
480
+        boolean expected = true;
481
+        //when
482
+        boolean actual = arraz.theTotalOfTensIs30(ints);
483
+        //then
484
+        Assert.assertEquals(expected, actual);
485
+    }
486
+
487
+    @Test
488
+    public void test1findSecondSmallestValueFromArray() {
489
+        //given
490
+        int [] ints = {1, 3, 5, 10};
491
+        int expected = 3;
492
+        //when
493
+        int actual = arraz.findSecondSmallValueFromArray(ints);
494
+        //then
495
+        Assert.assertEquals(expected, actual);
496
+    }
497
+
498
+    @Test
499
+    public void test1makeMeACopyPlease() {
500
+        //given
501
+        int [] ints = {1, 2, 3, 4};
502
+        int [] expected = {4, 3, 2, 1};
503
+
504
+        //when
505
+        int [] actual = arraz.makeMeACopyPlease(ints);
506
+        //then
507
+        Assert.assertArrayEquals(expected, actual);
508
+    }
4 509
 
5
-}
510
+    @Test
511
+    public void test2makeMeACopyPlease() {
512
+        //given
513
+        int [] ints = {2, 4, 5, 7, 4};
514
+        int [] expected = {4, 7, 5, 4, 2};
515
+        //when
516
+        int [] actual = arraz.makeMeACopyPlease(ints);
517
+        //then
518
+        Assert.assertArrayEquals(expected, actual);
519
+    }
520
+    
521
+}