Brandon Defrancis 6 gadus atpakaļ
vecāks
revīzija
b26ddc6ee8

Binārs
.DS_Store Parādīt failu


+ 16
- 0
arraz/.idea/compiler.xml Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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

+ 524
- 0
arraz/.idea/workspace.xml Parādīt failu

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

+ 4
- 4
arraz/arraz.iml Parādīt failu

@@ -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 Parādīt failu

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

+ 306
- 0
arraz/src/main/java/Arraz.java Parādīt failu

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

+ 468
- 0
arraz/src/test/java/ArrazTest.java Parādīt failu

@@ -1,5 +1,473 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+import javax.accessibility.AccessibleStateSet;
5
+
6
+import java.util.ArrayList;
7
+import java.util.Arrays;
8
+
1 9
 import static org.junit.Assert.*;
2 10
 
3 11
 public class ArrazTest {
4 12
 
13
+    private int[] intArr = new int[]{1, 23, 10, 4, 5, 3};
14
+    private double[] dbArr = new double[]{1.0, 2.0, 3.0, 4.0};
15
+    Arraz arraz = new Arraz();
16
+
17
+
18
+    @Test
19
+    public void sumValuesOfArrayTest1() {
20
+        int expected = 46;
21
+
22
+        int actual = arraz.sumValuesOfArray(intArr);
23
+
24
+        Assert.assertEquals(expected, actual);
25
+    }
26
+
27
+    @Test
28
+    public void sumValuesOfArrayTest2() {
29
+        int[] intArr2 = new int[]{10, 20, 30, 40};
30
+        int expected = 100;
31
+
32
+        int actual = arraz.sumValuesOfArray(intArr2);
33
+
34
+        Assert.assertEquals(expected, actual);
35
+
36
+    }
37
+
38
+    @Test
39
+    public void sumDoublesOfArrayTest1() {
40
+        double expected = 10.0;
41
+
42
+        double actual = arraz.sumDoublesOfArray(dbArr);
43
+
44
+        Assert.assertEquals(expected, actual, 0);
45
+    }
46
+
47
+    @Test
48
+    public void sumDoublesOfArrayTest2() {
49
+        double[] dbArr2 = new double[]{10.5, 20.1, 30.0, 40.0};
50
+        double expected = 100.6;
51
+
52
+        double actual = arraz.sumDoublesOfArray(dbArr2);
53
+
54
+        Assert.assertEquals(expected, actual, 0);
55
+    }
56
+
57
+    @Test
58
+    public void averageOfArrayTest1() {
59
+        int expected = 7;
60
+
61
+        int actual = arraz.averageOfArray(intArr);
62
+
63
+        Assert.assertEquals(expected, actual);
64
+    }
65
+
66
+    @Test
67
+    public void averageOfArrayTest2() {
68
+        int[] intArr2 = new int[]{10, 20, 30, 40};
69
+
70
+        int expected = 25;
71
+
72
+        int actual = arraz.averageOfArray(intArr2);
73
+
74
+        Assert.assertEquals(expected, actual);
75
+    }
76
+
77
+    @Test
78
+    public void averageDoubleOfArrayTest1() {
79
+        double expected = 2.5;
80
+
81
+        double actual = arraz.averageDoubleOfArray(dbArr);
82
+
83
+        Assert.assertEquals(expected, actual, 0);
84
+    }
85
+
86
+    @Test
87
+    public void averageDoubleOfArrayTest2() {
88
+        double[] dbArr2 = new double[]{10.0, 20.0, 30.0, 40.0};
89
+
90
+        double expected = 25.0;
91
+
92
+        double actual = arraz.averageDoubleOfArray(dbArr2);
93
+
94
+        Assert.assertEquals(expected, actual, 0);
95
+    }
96
+
97
+    @Test
98
+    public void containsValueTest1() {
99
+        Assert.assertTrue(arraz.containsValue(intArr, 23));
100
+    }
101
+
102
+    @Test
103
+    public void containsValueTest2() {
104
+        Assert.assertFalse(arraz.containsValue(intArr, 300));
105
+    }
106
+
107
+    @Test
108
+    public void reverseArrayTest1() {
109
+        int[] expected = new int[]{3, 5, 4, 10, 23, 1};
110
+
111
+        int[] actual = arraz.reverseArray(intArr);
112
+
113
+        Assert.assertTrue(Arrays.equals(expected, actual));
114
+    }
115
+
116
+    @Test
117
+    public void reverseArrayTest2() {
118
+
119
+    }
120
+
121
+    @Test
122
+    public void getOddEvensOfArrayTest(){
123
+        int[] testArr = new int[]{4, 2};
124
+        int[] actual = arraz.getOddEvensOfArray(intArr);
125
+
126
+        Assert.assertEquals(Arrays.toString(testArr), Arrays.toString(actual));
127
+    }
128
+
129
+    @Test
130
+    public void findIndexOfTest() {
131
+        Assert.assertEquals(3,arraz.findIndexOf(intArr, 4));
132
+    }
133
+
134
+    @Test
135
+    public void findIndexOfTest2() {
136
+        Assert.assertEquals(0,arraz.findIndexOf(intArr, 1));
137
+    }
138
+
139
+    @Test
140
+    public void copyArrayByIteratorTest() {
141
+        Integer[] intArr = new Integer[]{1, 23, 10, 4, 5, 3};
142
+
143
+        Integer[] newArr = new Integer[intArr.length];
144
+        arraz.copyArrayByIterator(intArr, newArr);
145
+
146
+        Assert.assertTrue(Arrays.equals(intArr, newArr));
147
+    }
148
+
149
+    @Test
150
+    public void copyArrayByLoopTest() {
151
+        int[] newArr = new int[intArr.length];
152
+        arraz.copyArrayByLoop(intArr, newArr);
153
+
154
+        Assert.assertTrue(Arrays.equals(intArr, newArr));
155
+    }
156
+
157
+    @Test
158
+    public void removeElementFromArrayTest() {
159
+        int[] intArr2 = arraz.removeElementFromArray(intArr, 10);
160
+        System.out.println(Arrays.toString(intArr2));
161
+        Assert.assertFalse(arraz.containsValue(intArr2, 10));
162
+    }
163
+
164
+    @Test
165
+    public void removeElementFromArrayTest2() {
166
+        int[] intArr2 = arraz.removeElementFromArray(intArr, 23);
167
+        System.out.println(Arrays.toString(intArr2));
168
+        Assert.assertFalse(arraz.containsValue(intArr2, 23));
169
+    }
170
+
171
+    @Test
172
+    public void insertIntoArrayAtTest() {
173
+        int[] intArr2 = new int[]{1, 23, 10, 4, 5, 3};
174
+
175
+        arraz.insertIntoArrayAt(intArr2, 20, 0);
176
+
177
+        Assert.assertTrue(arraz.containsValue(intArr2, 20));
178
+    }
179
+
180
+    @Test
181
+    public void insertIntoArrayAtTest2() {
182
+        int[] intArr2 = new int[]{1, 23, 10, 4, 5, 3};
183
+
184
+        arraz.insertIntoArrayAt(intArr2, -20, 4);
185
+
186
+        Assert.assertTrue(arraz.containsValue(intArr2, -20));
187
+    }
188
+
189
+    @Test
190
+    public void findMaxMinOfArrayTest() {
191
+        int[] expected = new int[]{1, 23};
192
+
193
+        int[] actual = arraz.findMaxMinOfArray(intArr);
194
+
195
+        Assert.assertEquals(Arrays.toString(expected), Arrays.toString(actual));
196
+    }
197
+
198
+
199
+    @Test
200
+    public void removeDupeFromArrayTest() {
201
+        Integer[] arr = new Integer[]{1, 1, 2, 3, 4, 4, 5, 3};
202
+        Integer[] arr2 = new Integer[]{1, 2, 3, 4, 5};
203
+
204
+        Integer[] arr3 = arraz.removeDupeFromArray(arr);
205
+
206
+        System.out.println(Arrays.toString(arr3));
207
+
208
+        Assert.assertTrue(Arrays.equals(arr3, arr2));
209
+    }
210
+
211
+
212
+    @Test
213
+    public void removeDupeFromArrayTest2() {
214
+        Integer[] arr = new Integer[]{1, 10, 22, 1, 1, 2, 3, 4, 4, 5, 3, 22, 2, 10};
215
+        Integer[] arr2 = new Integer[]{1, 2, 3, 4, 5, 10, 22};
216
+
217
+        Integer[] arr3 = arraz.removeDupeFromArray(arr);
218
+
219
+        System.out.println(Arrays.toString(arr3));
220
+
221
+        Assert.assertTrue(Arrays.equals(arr3, arr2));
222
+    }
223
+
224
+    @Test
225
+    public void find2ndLargestValueFromArrayTest() {
226
+        double expected = 3.0;
227
+        double actual = arraz.find2ndLargestValueFromArray(dbArr);
228
+
229
+        Assert.assertEquals(expected, actual, 0);
230
+    }
231
+
232
+    @Test
233
+    public void find2ndLargestValueFromArrayTest2() {
234
+        double[] dbArr2 = new double[]{103.0, 22.0, 34.0, 4010.0};
235
+
236
+        double expected = 103.0;
237
+        double actual = arraz.find2ndLargestValueFromArray(dbArr2);
238
+
239
+        Assert.assertEquals(expected, actual, 0);
240
+    }
241
+
242
+    @Test
243
+    public void makeMeAnArrayListFromArrayTest() {
244
+        Assert.assertTrue(arraz.makeMeAnArrayListFromArray(intArr).contains(10));
245
+    }
246
+
247
+    @Test
248
+    public void makeMeAnArrayListFromArrayTest2() {
249
+        Assert.assertTrue(arraz.makeMeAnArrayListFromArray(intArr).contains(1));
250
+    }
251
+
252
+    @Test
253
+    public void makeMeAnArrayFromArrayListTest() {
254
+
255
+    }
256
+
257
+    @Test
258
+    public void check2ArraysForEqualTest() {
259
+        int[] arr = new int[]{1, 1, 2, 3, 4, 4, 5, 3};
260
+        int[] arr2 = new int[]{1, 1, 2, 3, 4, 4, 5, 3};
261
+
262
+        Assert.assertTrue(arraz.check2ArraysForEqual(arr, arr2));
263
+    }
264
+
265
+    @Test
266
+    public void check2ArraysForEqualTest2() {
267
+        int[] arr = new int[]{109, 1040, -2, 30, -64, 4, 5, 3};
268
+        int[] arr2 = new int[]{109, 1040, -2, 30, -64, 4, 5, 3};
269
+
270
+        Assert.assertTrue(arraz.check2ArraysForEqual(arr, arr2));
271
+    }
272
+
273
+    @Test
274
+    public void averageArrayWithoutMaxMinTest() {
275
+        int expected = 5;
276
+
277
+        int actual = arraz.averageArrayWithoutMaxMin(intArr);
278
+
279
+        Assert.assertEquals(expected, actual);
280
+    }
281
+
282
+    @Test
283
+    public void averageArrayWithoutMaxMinTest2() {
284
+        int[] arr = new int[]{1, 1, 2, 3, 4, 4, 5, 3};
285
+
286
+        int expected = 2;
287
+
288
+        int actual = arraz.averageArrayWithoutMaxMin(arr);
289
+
290
+        Assert.assertEquals(expected, actual);
291
+    }
292
+
293
+    @Test
294
+    public void arrayHas65and77Test() {
295
+        Assert.assertFalse(arraz.arrayHas65and77(intArr));
296
+    }
297
+
298
+    @Test
299
+    public void arrayHas65and77Test2() {
300
+        int[] arr = new int[]{109, 1040, -2, 65, -64, 4, 77, 3};
301
+
302
+
303
+        Assert.assertTrue(arraz.arrayHas65and77(arr));
304
+    }
305
+
306
+    @Test
307
+    public void theTotalofTensIs30Test() {
308
+        Assert.assertFalse(arraz.theTotalofTensIs30(intArr));
309
+    }
310
+
311
+    @Test
312
+    public void theTotalofTensIs30Test2() {
313
+        int[] arr = new int[]{10, 10, 10, 65, -10, 4, 77, 3};
314
+        Assert.assertTrue(arraz.theTotalofTensIs30(arr));
315
+    }
316
+
317
+
318
+    @Test
319
+    public void twoSmallestInArrayTest() {
320
+        int[] expected = new int[]{1, 3};
321
+        int[] actual = arraz.twoSmallestInArray(intArr);
322
+
323
+        Assert.assertTrue(Arrays.equals(expected, actual));
324
+    }
325
+
326
+    @Test
327
+    public void makeMeACopyPleaseTest() {
328
+        Integer[] arr = new Integer[]{1, 2, 3, 4, 5, 10, 22};
329
+        Integer[] expected = new Integer[]{22, 10, 5, 4, 3, 2, 1};
330
+
331
+        Integer[] actual = arraz.makeMeACopyPlease(arr);
332
+
333
+        Assert.assertTrue(Arrays.equals(expected, actual));
334
+    }
335
+
336
+    @Test
337
+    public void makeMeACopyPleaseTest2() {
338
+        Integer[] arr = new Integer[]{1, -42, 3, -4, 5, 10, 22};
339
+        Integer[] expected = new Integer[]{22, 10, 5, -4, 3, -42, 1};
340
+
341
+        Integer[] actual = arraz.makeMeACopyPlease(arr);
342
+
343
+        Assert.assertTrue(Arrays.equals(expected, actual));
344
+    }
345
+
346
+    @Test
347
+    public void removeLastItemAndCopyTest() {
348
+        Integer[] arr = new Integer[]{1, -42, 3, -4, 5, 10, 22};
349
+
350
+        Integer[] expected = new Integer[]{1, -42, 3, -4, 5, 10};
351
+
352
+        Integer[] actual = arraz.removeLastItemAndCopy(arr);
353
+        Assert.assertTrue(Arrays.equals(expected, actual));
354
+    }
355
+
356
+    @Test
357
+    public void removeLastItemAndCopyTest2() {
358
+        Integer[] arr = new Integer[]{1, -42, 3, -4, 5, 10, 22, 1000, -32};
359
+
360
+        Integer[] expected = new Integer[]{1, -42, 3, -4, 5, 10, 22, 1000};
361
+
362
+        Integer[] actual = arraz.removeLastItemAndCopy(arr);
363
+        Assert.assertTrue(Arrays.equals(expected, actual));
364
+    }
365
+
366
+    @Test
367
+    public void removeFirstItemAndCopyTest() {
368
+        Integer[] arr = new Integer[]{1, -42, 3, -4, 5, 10, 22, 1000, -32};
369
+
370
+        Integer[] expected = new Integer[]{-42, 3, -4, 5, 10, 22, 1000, -32};
371
+
372
+        Integer[] actual = arraz.removeFirstItemAndCopy(arr);
373
+        Assert.assertTrue(Arrays.equals(expected, actual));
374
+    }
375
+
376
+    @Test
377
+    public void removeFirstItemAndCopyTest2() {
378
+        Integer[] arr = new Integer[]{-1, -42, 3, -4, 5, 10, 22, 1000, -32};
379
+
380
+        Integer[] expected = new Integer[]{-42, 3, -4, 5, 10, 22, 1000, -32};
381
+
382
+        Integer[] actual = arraz.removeFirstItemAndCopy(arr);
383
+        Assert.assertTrue(Arrays.equals(expected, actual));
384
+    }
385
+
386
+    @Test
387
+    public void insertAtStartAndCopyTest() {
388
+        Integer[] arr = new Integer[]{-1, -42, 3, -4, 5, 10, 22, 1000, -32};
389
+
390
+        Integer[] expected = new Integer[]{50, -1, -42, 3, -4, 5, 10, 22, 1000, -32};
391
+
392
+        Integer[] actual = arraz.insertAtStartAndCopy(arr, 50);
393
+        System.out.println(Arrays.toString(actual));
394
+        Assert.assertTrue(Arrays.equals(expected, actual));
395
+    }
396
+
397
+    @Test
398
+    public void insertAtStartAndCopyTest2() {
399
+        Integer[] arr = new Integer[]{-1, -42, 3, -4, 5, 10, 22, 1000, -32};
400
+
401
+        Integer[] expected = new Integer[]{-50, -1, -42, 3, -4, 5, 10, 22, 1000, -32};
402
+
403
+        Integer[] actual = arraz.insertAtStartAndCopy(arr, -50);
404
+        Assert.assertTrue(Arrays.equals(expected, actual));
405
+    }
406
+
407
+    @Test
408
+    public void insertAtEndAndCopyTest() {
409
+        Integer[] arr = new Integer[]{-1, -42, 3, -4, 5, 10, 22, 1000, -32};
410
+
411
+        Integer[] expected = new Integer[]{-1, -42, 3, -4, 5, 10, 22, 1000, -32, -50};
412
+
413
+        Integer[] actual = arraz.insertAtEndAndCopy(arr, -50);
414
+        Assert.assertTrue(Arrays.equals(expected, actual));
415
+    }
416
+
417
+    @Test
418
+    public void insertAtEndAndCopyTest2() {
419
+        Integer[] arr = new Integer[]{-1, -42, 3, -4, 5, 10, 22, 1000, -32};
420
+
421
+        Integer[] expected = new Integer[]{-1, -42, 3, -4, 5, 10, 22, 1000, -32, 73};
422
+
423
+        Integer[] actual = arraz.insertAtEndAndCopy(arr, 73);
424
+        Assert.assertTrue(Arrays.equals(expected, actual));
425
+    }
426
+
427
+    @Test
428
+    public void evensArrayTest(){
429
+        Integer[] arr = new Integer[]{1, 2, 3, 4, 5, 10, 3, 6};
430
+
431
+        Integer[] expected = new Integer[]{2, 4, 10, 6};
432
+
433
+        Integer[] actual = arraz.evensArray(arr);
434
+        System.out.println(Arrays.toString(actual));
435
+        Assert.assertTrue(Arrays.equals(expected, actual));
436
+
437
+    }
438
+
439
+    @Test
440
+    public void oddsArrayTest(){
441
+        Integer[] arr = new Integer[]{1, 2, 3, 4, 5, 10, 3, 6};
442
+
443
+        Integer[] expected = new Integer[]{1, 3, 5, 3};
444
+
445
+        Integer[] actual = arraz.oddsArray(arr);
446
+        System.out.println(Arrays.toString(actual));
447
+        Assert.assertTrue(Arrays.equals(expected, actual));
448
+
449
+    }
450
+
451
+    @Test
452
+    public void mergeArraysTest(){
453
+        Integer[] arr = new Integer[]{1, 2, 3, 4, 5};
454
+        Integer[] arr2 = new Integer[]{6, 7, 8, 9, 10};
455
+
456
+        Integer[] expected = new Integer[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
457
+
458
+        Integer[] actual = arraz.mergeArrays(arr, arr2);
459
+        System.out.println(Arrays.toString(actual));
460
+        Assert.assertTrue(Arrays.equals(expected, actual));
461
+    }
462
+    @Test
463
+    public void sortArrayIntoEvensThenOddstest() {
464
+        Integer[] arr = new Integer[]{3, 2, 5, 6, 10, 11, 15};
465
+
466
+        Integer[] expected = new Integer[]{2, 6, 10, 3, 5, 11, 15};
467
+
468
+        Integer[] actual = arraz.sortArrayIntoEvensThenOdds(arr);
469
+        System.out.println(Arrays.toString(arr));
470
+        Assert.assertTrue(Arrays.equals(expected, actual));
471
+
472
+    }
5 473
 }