ThuyKhong vor 6 Jahren
Ursprung
Commit
3f33cf4819

+ 16
- 0
arraz/.idea/compiler.xml Datei anzeigen

@@ -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 target="8">
13
+      <module name="arraz" target="8" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
arraz/.idea/libraries/Maven__junit_junit_4_12.xml Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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>

+ 546
- 0
arraz/.idea/workspace.xml Datei anzeigen

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

+ 4
- 4
arraz/arraz.iml Datei anzeigen

@@ -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 Datei anzeigen

@@ -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
 

+ 300
- 0
arraz/src/main/java/Arraz.java Datei anzeigen

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

+ 23
- 0
arraz/src/main/java/MaxMin.java Datei anzeigen

@@ -0,0 +1,23 @@
1
+public class MaxMin {
2
+    public int max;
3
+    public int min;
4
+
5
+    public MaxMin() {
6
+    }
7
+
8
+    public int getMax() {
9
+        return max;
10
+    }
11
+
12
+    public void setMax(int max) {
13
+        this.max = max;
14
+    }
15
+
16
+    public int getMin() {
17
+        return min;
18
+    }
19
+
20
+    public void setMin(int min) {
21
+        this.min = min;
22
+    }
23
+}

+ 23
- 0
arraz/src/main/java/OddEven.java Datei anzeigen

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

+ 23
- 0
arraz/src/main/java/SmallestAndNext.java Datei anzeigen

@@ -0,0 +1,23 @@
1
+public class SmallestAndNext {
2
+    private int smallest;
3
+    private int secondSmallest;
4
+
5
+    public SmallestAndNext() {
6
+    }
7
+
8
+    public int getSmallest() {
9
+        return smallest;
10
+    }
11
+
12
+    public void setSmallest(int smallest) {
13
+        this.smallest = smallest;
14
+    }
15
+
16
+    public int getSecondSmallest() {
17
+        return secondSmallest;
18
+    }
19
+
20
+    public void setSecondSmallest(int secondSmallest) {
21
+        this.secondSmallest = secondSmallest;
22
+    }
23
+}

+ 580
- 0
arraz/src/test/java/ArrazTest.java Datei anzeigen

@@ -1,5 +1,585 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+import java.util.ArrayList;
5
+
1 6
 import static org.junit.Assert.*;
2 7
 
3 8
 public class ArrazTest {
9
+    Arraz arraz = new Arraz();
10
+
11
+    @Test
12
+    public void test1SumValuesOfArray(){
13
+        int[] arr = {1,2,3,4,5,6};
14
+
15
+        int expected = 21;
16
+        int actual = arraz.sumValuesOfArray(arr);
17
+
18
+        Assert.assertEquals(expected,actual);
19
+    }
20
+
21
+    @Test
22
+    public void test2SumValuesOfArray(){
23
+        int[] arr = {20,25};
24
+
25
+        int expected = 45;
26
+        int actual = arraz.sumValuesOfArray(arr);
27
+
28
+        Assert.assertEquals(expected,actual);
29
+    }
30
+
31
+    @Test
32
+    public void test1SumDoublesOfArray(){
33
+        double[] arr = {1.0,2.0,3.0,4.5};
34
+
35
+        double expected = 10.5;
36
+        double actual = arraz.sumDoublesOfArray(arr);
37
+
38
+        Assert.assertEquals(expected,actual, 0.01);
39
+    }
40
+
41
+    @Test
42
+    public void test2SumDoublesOfArray(){
43
+        double[] arr = {2.5,2.5,2.5,2.5};
44
+
45
+        double expected = 10.0;
46
+        double actual = arraz.sumDoublesOfArray(arr);
47
+
48
+        Assert.assertEquals(expected,actual,0.01);
49
+    }
50
+
51
+    @Test
52
+    public void test1AverageOfArray(){
53
+        int[] arr = {2,2,2};
54
+
55
+        int expected = 2;
56
+        int actual = arraz.averageOfArray(arr);
57
+
58
+        Assert.assertEquals(expected,actual);
59
+    }
60
+
61
+    @Test
62
+    public void test2AverageOfArray(){
63
+        int[] arr = {2,3,4,5};
64
+
65
+        int expected = 3;
66
+        int actual = arraz.averageOfArray(arr);
67
+
68
+        Assert.assertEquals(expected,actual);
69
+    }
70
+
71
+    @Test
72
+    public void test1doubleAverageOfArray(){
73
+        double[] arr = {1.0,2.0,3.0,4.0};
74
+
75
+        double expected = 2.5;
76
+        double actual = arraz.doubleAverageOfArray(arr);
77
+
78
+        Assert.assertEquals(expected,actual, 0.001);
79
+    }
80
+
81
+    @Test
82
+    public void test2doubleAverageOfArray(){
83
+        double[] arr = {2.5,2.5,2.5,2.5};
84
+
85
+        double expected = 2.5;
86
+        double actual = arraz.doubleAverageOfArray(arr);
87
+
88
+        Assert.assertEquals(expected,actual,0.01);
89
+    }
90
+
91
+    @Test
92
+    public void testContainsValue_whenTrue(){
93
+        int[] arr = {1,2,3,4,5};
94
+        int value = 2;
95
+
96
+        boolean expected = true;
97
+        boolean actual = arraz.containsValue(arr,value);
98
+
99
+        Assert.assertEquals(expected,actual);
100
+    }
101
+
102
+    @Test
103
+    public void testContainsValue_whenFalse(){
104
+        int[] arr = {1,2,3,4,5,6};
105
+
106
+        boolean expected = false;
107
+        boolean actual = arraz.containsValue(arr,10);
108
+
109
+        Assert.assertEquals(expected,actual);
110
+    }
111
+
112
+    @Test
113
+    public void test1ReverseArray(){
114
+        int[] arr = {1,2,3,4,5};
115
+
116
+        int expected = 5;
117
+        int actual = arraz.reverseArray(arr)[0];
118
+
119
+        Assert.assertEquals(expected,actual);
120
+    }
121
+
122
+    @Test
123
+    public void test2ReverseArray(){
124
+        int[] arr = {4,6,7,8,3};
125
+
126
+        int expected = 8;
127
+        int actual = arraz.reverseArray(arr)[1];
128
+
129
+        Assert.assertEquals(expected,actual);
130
+    }
131
+
132
+    @Test
133
+    public void test1getOddEvensOfArray(){
134
+        int[] array = {1,2,3,4,5,6,7};
135
+
136
+        int oddExpected = 4;
137
+        int oddActual = arraz.getOddEvensOfArray(array).getOdds();
138
+        int evenExpected = 3;
139
+        int evenActual = arraz.getOddEvensOfArray(array).getEvens();
140
+
141
+        Assert.assertEquals(oddExpected,oddActual);
142
+        Assert.assertEquals(evenExpected,evenActual);
143
+    }
144
+
145
+    @Test
146
+    public void test2getOddEvensOfArray(){
147
+        int[] array = {2,4,6,8};
148
+
149
+        int oddExpected = 0;
150
+        int oddActual = arraz.getOddEvensOfArray(array).getOdds();
151
+        int evenExpected = 4;
152
+        int evenActual = arraz.getOddEvensOfArray(array).getEvens();
153
+
154
+        Assert.assertEquals(oddExpected,oddActual);
155
+        Assert.assertEquals(evenExpected,evenActual);
156
+    }
157
+
158
+    @Test
159
+    public void test1findIndexOf_whenExists(){
160
+        int[] array = {1,2,3,4,5,6};
161
+
162
+        int expected = 2;
163
+        int actual = arraz.findIndexOf(array,3);
164
+
165
+        Assert.assertEquals(expected,actual);
166
+    }
167
+
168
+    @Test
169
+    public void test1findIndexOf_whenDoesntExist(){
170
+        int[] array = {1,2,3,4,5,6};
171
+
172
+        int expected = -1;
173
+        int actual = arraz.findIndexOf(array,9);
174
+
175
+        Assert.assertEquals(expected,actual);
176
+    }
177
+
178
+    @Test
179
+    public void test1copyArrayByInterator(){
180
+        Integer[] array = {2,4,6,8,10};
181
+
182
+        Integer[] expected = {2,4,6,8,10};
183
+        Integer[] actual = arraz.copyArrayByInterator(array);
184
+
185
+        Assert.assertArrayEquals(expected,actual);
186
+    }
187
+
188
+    @Test
189
+    public void test2copyArrayByInterator(){
190
+        Integer[] array = {1,2,3,4,5,6};
191
+
192
+        Integer[] expected = {1,2,3,4,5,6};
193
+        Integer[] actual = arraz.copyArrayByInterator(array);
194
+
195
+        Assert.assertArrayEquals(expected,actual);
196
+    }
197
+
198
+    @Test
199
+    public void test1copyArrayByLoop(){
200
+        int[] array = {2,4,6,8,10};
201
+
202
+        int[] expected = {2,4,6,8,10};
203
+        int[] actual = arraz.copyArrayByLoop(array);
204
+
205
+        Assert.assertArrayEquals(expected,actual);
206
+    }
207
+
208
+    @Test
209
+    public void test2copyArrayByLoop(){
210
+        int[] array = {1,2,3,4,5,6};
211
+
212
+        int[] expected = {1,2,3,4,5,6};
213
+        int[] actual = arraz.copyArrayByLoop(array);
214
+
215
+        Assert.assertArrayEquals(expected,actual);
216
+    }
217
+
218
+    @Test
219
+    public void test1removeElementFromArray(){
220
+        int[] array = {1,2,3,4,5,6};
221
+        int value = 3;
222
+
223
+        int[] expected = {1,2,4,5,6};
224
+        int[] actual = arraz.removeElementFromArray(array,value);
225
+
226
+
227
+        Assert.assertArrayEquals(expected,actual);
228
+    }
229
+
230
+    @Test
231
+    public void test2removeElementFromArray(){
232
+        int[] array = {2,4,6,8,10};
233
+
234
+        int[] expected = {4,6,8,10};
235
+        int[] actual = arraz.removeElementFromArray(array,2);
236
+
237
+        Assert.assertArrayEquals(expected,actual);
238
+    }
239
+
240
+    @Test
241
+    public void test1insertIntoArrayAt(){
242
+        int[] array = {1,2,3,4,5,6};
243
+
244
+        int expected = 4;
245
+        int actual = arraz.insertIntoArrayAt(array,4,1)[1];
246
+
247
+        Assert.assertEquals(expected,actual);
248
+    }
249
+
250
+    @Test
251
+    public void test2InsertIntoArrayAt(){
252
+        int[] array = {2,4,6,8,10};
253
+
254
+        int[] expected = {2,4,6,1,8,10};
255
+        int[] actual = arraz.insertIntoArrayAt(array,1,3);
256
+
257
+        Assert.assertArrayEquals(expected,actual);
258
+    }
259
+
260
+    @Test
261
+    public void test1findMaxMinOfArray(){
262
+        int[] array = {1,2,3,4,5};
263
+
264
+        int maxExpected = 5;
265
+        int maxActual = arraz.findMaxMinOfArray(array).getMax();
266
+        int minExpected = 1;
267
+        int minActual = arraz.findMaxMinOfArray(array).getMin();
268
+
269
+        Assert.assertEquals(maxExpected,maxActual);
270
+        Assert.assertEquals(minExpected,minActual);
271
+    }
272
+
273
+    @Test
274
+    public void test2findMaxMinOfArray(){
275
+        int[] array = {2,4,6,8,10};
276
+
277
+        int maxExpected = 10;
278
+        int maxActual = arraz.findMaxMinOfArray(array).getMax();
279
+        int minExpected = 2;
280
+        int minActual = arraz.findMaxMinOfArray(array).getMin();
281
+
282
+        Assert.assertEquals(maxExpected,maxActual);
283
+        Assert.assertEquals(minExpected,minActual);
284
+    }
285
+
286
+    @Test
287
+    public void test1removeDupesFromArray(){
288
+        Integer[] array = {1,2,3,4,5,3};
289
+
290
+        Integer[] expected = {1,2,3,4,5};
291
+        Integer[] actual = arraz.removeDupesFromArray(array);
292
+
293
+        Assert.assertArrayEquals(expected,actual);
294
+    }
295
+
296
+    @Test
297
+    public void test2removeDupesFromArray(){
298
+        Integer[] array = {1,1,1,1};
299
+
300
+        Integer[] expected = {1};
301
+        Integer[] actual = arraz.removeDupesFromArray(array);
302
+
303
+        Assert.assertArrayEquals(expected,actual);
304
+    }
305
+
306
+    @Test
307
+    public void test1find2ndLargestValueFromArray(){
308
+        Double[] array = {1.0,2.0,3.0,5.0,4.0};
309
+
310
+        Double expected = 4.0;
311
+        Double actual = arraz.find2ndLargestValueFromArray(array);
312
+
313
+        Assert.assertEquals(expected,actual);
314
+    }
315
+
316
+    @Test
317
+    public void test2find2ndLargestValueFromArray(){
318
+        Double[] array = {5.0,2.0,3.0,4.0,1.0};
319
+
320
+        Double expected = 4.0;
321
+        Double actual = arraz.find2ndLargestValueFromArray(array);
322
+
323
+        Assert.assertEquals(expected,actual);
324
+    }
325
+
326
+    @Test
327
+    public void test1makeMeAnArrayListFromArray(){
328
+        Integer[] array = {1,2,3,4,5};
329
+
330
+        int expected = 5;
331
+        int actual = arraz.makeMeAnArrayListFromArray(array).size();
332
+
333
+        Assert.assertEquals(expected,actual);
334
+    }
335
+
336
+    @Test
337
+    public void test2makeMeAnArrayListFromArray(){
338
+        Integer[] array = {1,2,3,4,5,7,8,9};
339
+
340
+        int expected = 8;
341
+        int actual = arraz.makeMeAnArrayListFromArray(array).size();
342
+
343
+        Assert.assertEquals(expected,actual);
344
+    }
345
+
346
+    @Test
347
+    public void test1makeMeAnArrayFromArrayList(){
348
+        ArrayList<Integer> intList = new ArrayList<Integer>();
349
+        intList.add(1);
350
+        intList.add(2);
351
+        intList.add(3);
352
+        intList.add(4);
353
+
354
+        int expected = 4;
355
+        int actual = arraz.makeMeAnArrayFromArrayList(intList).length;
356
+
357
+        Assert.assertEquals(expected,actual);
358
+    }
359
+
360
+    @Test
361
+    public void test2makeMeAnArrayFromArrayList() {
362
+        ArrayList<Integer> intList = new ArrayList<Integer>();
363
+        intList.add(1);
364
+        intList.add(2);
365
+        intList.add(4);
366
+
367
+        int expected = 3;
368
+        int actual = arraz.makeMeAnArrayFromArrayList(intList).length;
369
+
370
+        Assert.assertEquals(expected, actual);
371
+    }
372
+
373
+    @Test
374
+    public void test1check2ArraysForEqual(){
375
+        int[] array1 = {1,2,3,4,5};
376
+        int[] array2 = {1,2,3,4,5};
377
+
378
+        Assert.assertTrue(arraz.check2ArraysForEqual(array1,array2));
379
+    }
380
+
381
+    @Test
382
+    public void test2check2ArraysForEqual(){
383
+        int[] array1 = {1,2,3,4,5};
384
+        int[] array2 = {5,4,3,2,1};
385
+
386
+        Assert.assertFalse(arraz.check2ArraysForEqual(array1, array2));
387
+    }
388
+
389
+    @Test
390
+    public void test1averageArrayWithoutMaxMin(){
391
+        int[] array = {1,2,3,4,5};
392
+
393
+        double expected = 3.0;
394
+        double actual = arraz.averageArrayWithoutMaxMin(array);
395
+
396
+        Assert.assertEquals(expected,actual,0.001);
397
+    }
398
+
399
+    @Test
400
+    public void test2averageArrayWithoutMaxMin(){
401
+        int[] array = {2,3,2,2,5};
402
+
403
+        double exptected = 2.0;
404
+        double actual = arraz.averageArrayWithoutMaxMin(array);
405
+
406
+        Assert.assertEquals(exptected,actual,0.001);
407
+    }
408
+
409
+    @Test
410
+    public void testarrayHas65and77_whenTrue(){
411
+        int[] array = {1,2,65,3,4,77};
412
+
413
+        Assert.assertTrue(arraz.arrayHas65and77(array));
414
+    }
415
+
416
+    @Test
417
+    public void testarrayHas65and77_whenFalse(){
418
+        int[] array = {1,2,4,3,4,5};
419
+
420
+        Assert.assertFalse(arraz.arrayHas65and77(array));
421
+    }
422
+
423
+    @Test
424
+    public void testarrayHas65and77_whenTheresOne(){
425
+        int[] array = {1,2,65,3,4,5};
426
+
427
+        Assert.assertFalse(arraz.arrayHas65and77(array));
428
+    }
429
+
430
+    @Test
431
+    public void testtheTotalofTensIs30_whenTrue(){
432
+        int[] array = {10,10,11,12,10};
433
+
434
+        Assert.assertTrue(arraz.theTotalofTensIs30(array));
435
+    }
436
+
437
+    @Test
438
+    public void testtheTotalofTensIs30_whenFalse(){
439
+        int[] array = {1,3,11,10,2};
440
+
441
+        Assert.assertFalse(arraz.theTotalofTensIs30(array));
442
+    }
443
+
444
+    @Test
445
+    public void test1FindSmallestAnd2ndSmallest(){
446
+        int[] array = {13,4,5,2,22,67,12};
447
+
448
+        int expectedSm = 2;
449
+        int actualSm = arraz.findSmallestN2ndSmallest(array).getSmallest();
450
+        int expectedNext = 4;
451
+        int actualNext = arraz.findSmallestN2ndSmallest(array).getSecondSmallest();
452
+
453
+        Assert.assertEquals(expectedNext,actualNext);
454
+        Assert.assertEquals(expectedSm,actualSm);
455
+    }
456
+
457
+    @Test
458
+    public void test2FindSmallestAnd2ndSmallest(){
459
+        int[] array = {43,2,6,2,7,8,34,21};
460
+
461
+        int expectedSm = 2;
462
+        int actualSm = arraz.findSmallestN2ndSmallest(array).getSmallest();
463
+        int expectedNext = 2;
464
+        int actualNext = arraz.findSmallestN2ndSmallest(array).getSecondSmallest();
465
+
466
+        Assert.assertEquals(expectedNext,actualNext);
467
+        Assert.assertEquals(expectedSm,actualSm);
468
+    }
469
+
470
+    @Test
471
+    public void test1makeMeACopyPlease(){
472
+        int[] array = {1,2,3,4,5};
473
+
474
+        int[] expected = {5,4,3,2,1};
475
+        int[] actual = arraz.makeMeACopyPlease(array);
476
+
477
+        Assert.assertArrayEquals(expected,actual);
478
+    }
479
+
480
+    @Test
481
+    public void test2makeMeACopyPlease(){
482
+        int[] array = {6,5,4,3,2,1};
483
+
484
+        int[] expected = {1,2,3,4,5,6};
485
+        int[] actual = arraz.makeMeACopyPlease(array);
486
+
487
+        Assert.assertArrayEquals(expected,actual);
488
+    }
489
+
490
+    @Test
491
+    public void test1removeLastItemAndCopy(){
492
+        int[] array = {1,2,3,4,5};
493
+
494
+        Assert.assertTrue(arraz.removeLastItemAndCopy(array).length==4);
495
+    }
496
+
497
+    @Test
498
+    public void test2removeLastItemAndCopy(){
499
+        int[] array = {2,4,6,8,10,1,3,5,7};
500
+
501
+        int expected = 8;
502
+        int actual = arraz.removeLastItemAndCopy(array).length;
503
+
504
+        Assert.assertEquals(expected,actual);
505
+    }
506
+
507
+    @Test
508
+    public void test1removeFirstItemAndCopy(){
509
+        int[] array = {1,2,3,4,5};
510
+
511
+        Assert.assertTrue(arraz.removeFirstItemAndCopy(array).length==4);
512
+    }
513
+
514
+    @Test
515
+    public void test2removeFirstItemAndCopy(){
516
+        int[] array = {2,3,4,5,6,7};
517
+
518
+        int[] expected = {3,4,5,6,7};
519
+        int[] actual = arraz.removeFirstItemAndCopy(array);
520
+
521
+        Assert.assertArrayEquals(expected,actual);
522
+    }
523
+
524
+    @Test
525
+    public void test1insertAtStartAndCopy(){
526
+        int[] array = {1,2,3,4,5};
527
+        int value = 0;
528
+
529
+        int expected = 6;
530
+        int actual = arraz.insertAtStartAndCopy(array,value).length;
531
+
532
+        Assert.assertEquals(expected,actual);
533
+    }
534
+
535
+    @Test
536
+    public void test2insertAtStartAndCopy(){
537
+        int[] array = {2,4,6,8};
538
+
539
+        int[] expected = {1,2,4,6,8};
540
+        int[] actual = arraz.insertAtStartAndCopy(array,1);
541
+
542
+        Assert.assertArrayEquals(expected,actual);
543
+    }
544
+
545
+    @Test
546
+    public void test1insertAtEndAndCopy(){
547
+        int[] spiffyHandyIntArray = new int[] {4,5,102,6,-7,12,-32,92,8};
548
+        int value = 10;
549
+
550
+        int expected = 10;
551
+        int actual = arraz.insertAtEndAndCopy(spiffyHandyIntArray,value).length;
552
+
553
+        Assert.assertEquals(expected,actual);
554
+    }
555
+
556
+    @Test
557
+    public void test2insertAtEndAndCopy(){
558
+        int[] array = {1,2,3,4,5};
559
+
560
+        int[] expected = {1,2,3,4,5,6};
561
+        int[] actual = arraz.insertAtEndAndCopy(array,6);
562
+
563
+        Assert.assertArrayEquals(expected,actual);
564
+    }
565
+
566
+    @Test
567
+    public void test1sortArrayIntoEvensThenOdds(){
568
+        int[] array = {1,2,3,4};
569
+
570
+        int[] expected = {2,4,1,3};
571
+        int[] actual = arraz.sortArrayIntoEvensThenOdds(array);
572
+
573
+        Assert.assertArrayEquals(expected,actual);
574
+    }
575
+
576
+    @Test
577
+    public void test2sortArrayIntoEvensThenOdds(){
578
+        int[] array = {1,2};
579
+
580
+        int[] expected = {2,1};
581
+        int[] actual = arraz.sortArrayIntoEvensThenOdds(array);
4 582
 
583
+        Assert.assertArrayEquals(expected,actual);
584
+    }
5 585
 }