#20 OMG! Arrays done!!!

오픈
chu1ta26 chu1ta26/ArraysGoneWild:master 에서 master 로 2 commits 를 머지하려 합니다

+ 1
- 1
.idea/compiler.xml 파일 보기

@@ -10,7 +10,7 @@
10 10
       </profile>
11 11
     </annotationProcessing>
12 12
     <bytecodeTargetLevel>
13
-      <module name="arraz" target="1.5" />
13
+      <module name="arraz" target="6" />
14 14
     </bytecodeTargetLevel>
15 15
   </component>
16 16
 </project>

+ 4
- 0
.idea/encodings.xml 파일 보기

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

+ 1
- 0
.idea/misc.xml 파일 보기

@@ -7,4 +7,5 @@
7 7
       </list>
8 8
     </option>
9 9
   </component>
10
+  <component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
10 11
 </project>

+ 276
- 246
.idea/workspace.xml 파일 보기

@@ -2,12 +2,18 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
-      <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
5
+      <change afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/arraz/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/arraz.iml" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/arraz/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/pom.xml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7 14
     </list>
8 15
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9 16
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
-    <option name="TRACKING_ENABLED" value="true" />
11 17
     <option name="SHOW_DIALOG" value="false" />
12 18
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
13 19
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -15,45 +21,30 @@
15 21
   </component>
16 22
   <component name="FileEditorManager">
17 23
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
18
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
19
-        <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
20
-          <provider selected="true" editor-type-id="text-editor">
21
-            <state relative-caret-position="0">
22
-              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
23
-              <folding />
24
-            </state>
25
-          </provider>
26
-        </entry>
27
-      </file>
28
-      <file leaf-file-name="Arraz.java" pinned="false" current-in-tab="false">
24
+      <file pinned="false" current-in-tab="false">
29 25
         <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
30 26
           <provider selected="true" editor-type-id="text-editor">
31
-            <state relative-caret-position="0">
32
-              <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
33
-              <folding />
27
+            <state relative-caret-position="278">
28
+              <caret line="256" column="45" selection-start-line="256" selection-start-column="17" selection-end-line="256" selection-end-column="45" />
29
+              <folding>
30
+                <element signature="e#5834#5835#0" expanded="true" />
31
+                <element signature="e#5891#5892#0" expanded="true" />
32
+                <element signature="e#6824#6833#0" expanded="true" />
33
+                <element signature="e#6877#6886#0" expanded="true" />
34
+              </folding>
34 35
             </state>
35 36
           </provider>
36 37
         </entry>
37 38
       </file>
38
-      <file leaf-file-name="ArrazTest.java" pinned="false" current-in-tab="false">
39
+      <file pinned="false" current-in-tab="true">
39 40
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
40 41
           <provider selected="true" editor-type-id="text-editor">
41
-            <state relative-caret-position="34">
42
-              <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
43
-              <folding />
44
-            </state>
45
-          </provider>
46
-        </entry>
47
-      </file>
48
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
49
-        <entry file="file://$PROJECT_DIR$/README.md">
50
-          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
51
-            <state split_layout="SPLIT">
52
-              <first_editor relative-caret-position="306">
53
-                <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
54
-                <folding />
55
-              </first_editor>
56
-              <second_editor />
42
+            <state relative-caret-position="274">
43
+              <caret line="428" column="43" selection-start-line="428" selection-start-column="43" selection-end-line="428" selection-end-column="43" />
44
+              <folding>
45
+                <element signature="imports" expanded="true" />
46
+                <element signature="e#8533#8542#0" expanded="true" />
47
+              </folding>
57 48
             </state>
58 49
           </provider>
59 50
         </entry>
@@ -63,38 +54,25 @@
63 54
   <component name="FileTemplateManagerImpl">
64 55
     <option name="RECENT_TEMPLATES">
65 56
       <list>
66
-        <option value="Class" />
67 57
         <option value="JUnit4 Test Class" />
58
+        <option value="Class" />
68 59
       </list>
69 60
     </option>
70 61
   </component>
71 62
   <component name="Git.Settings">
72 63
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73 64
   </component>
74
-  <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78
-    <option name="projectSyncType">
79
-      <map>
80
-        <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
81
-      </map>
82
-    </option>
83
-  </component>
84 65
   <component name="IdeDocumentHistory">
85 66
     <option name="CHANGED_PATHS">
86 67
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88 68
         <option value="$PROJECT_DIR$/README.md" />
69
+        <option value="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" />
70
+        <option value="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" />
71
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
72
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
89 73
       </list>
90 74
     </option>
91 75
   </component>
92
-  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
93
-  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
94
-  <component name="JsGulpfileManager">
95
-    <detection-done>true</detection-done>
96
-    <sorting>DEFINITION_ORDER</sorting>
97
-  </component>
98 76
   <component name="MavenImportPreferences">
99 77
     <option name="importingSettings">
100 78
       <MavenImportingSettings>
@@ -103,23 +81,12 @@
103 81
     </option>
104 82
   </component>
105 83
   <component name="ProjectFrameBounds">
106
-    <option name="x" value="242" />
107
-    <option name="y" value="45" />
108
-    <option name="width" value="1538" />
109
-    <option name="height" value="962" />
84
+    <option name="y" value="26" />
85
+    <option name="width" value="1280" />
86
+    <option name="height" value="713" />
110 87
   </component>
111 88
   <component name="ProjectView">
112
-    <navigator currentView="ProjectPane" proportions="" version="1">
113
-      <flattenPackages />
114
-      <showMembers />
115
-      <showModules />
116
-      <showLibraryContents />
117
-      <hideEmptyPackages />
118
-      <abbreviatePackageNames />
119
-      <autoscrollToSource />
120
-      <autoscrollFromSource />
121
-      <sortByType />
122
-      <manualOrder />
89
+    <navigator proportions="" version="1">
123 90
       <foldersAlwaysOnTop value="true" />
124 91
     </navigator>
125 92
     <panes>
@@ -151,27 +118,49 @@
151 118
             <path>
152 119
               <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
153 120
               <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
121
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
122
+              <item name="src" type="462c0819:PsiDirectoryNode" />
123
+              <item name="main" type="462c0819:PsiDirectoryNode" />
124
+              <item name="java" type="462c0819:PsiDirectoryNode" />
125
+            </path>
126
+            <path>
127
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
128
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
129
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
130
+              <item name="src" type="462c0819:PsiDirectoryNode" />
131
+              <item name="test" type="462c0819:PsiDirectoryNode" />
132
+            </path>
133
+            <path>
134
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
135
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
136
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
137
+              <item name="src" type="462c0819:PsiDirectoryNode" />
138
+              <item name="test" type="462c0819:PsiDirectoryNode" />
139
+              <item name="java" type="462c0819:PsiDirectoryNode" />
140
+            </path>
141
+            <path>
142
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
143
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
154 144
               <item name="DocumentationOnArrays" type="462c0819:PsiDirectoryNode" />
155 145
             </path>
156 146
           </expand>
157 147
           <select />
158 148
         </subPane>
159 149
       </pane>
160
-      <pane id="Scratches" />
161
-      <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163 150
       <pane id="Scope" />
151
+      <pane id="PackagesPane" />
164 152
     </panes>
165 153
   </component>
166 154
   <component name="PropertiesComponent">
167
-    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
168
-    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
155
+    <property name="GO_FMT" value="false" />
169 156
     <property name="WebServerToolWindowFactoryState" value="false" />
170 157
     <property name="aspect.path.notification.shown" value="true" />
171
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
172
-    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
158
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544325400918" />
173 159
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
160
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
161
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
162
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
163
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
175 164
   </component>
176 165
   <component name="RecentsManager">
177 166
     <key name="CreateTestDialog.RecentsKey">
@@ -193,90 +182,111 @@
193 182
       </list>
194 183
     </option>
195 184
   </component>
196
-  <component name="RunManager">
197
-    <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
185
+  <component name="RunManager" selected="JUnit.ArrazTest.test1findSmallerAndSecondSmaller">
186
+    <configuration default="true" type="Applet">
200 187
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
188
+      <method v="2">
189
+        <option name="Make" enabled="true" />
190
+      </method>
202 191
     </configuration>
203 192
     <configuration default="true" type="Application" factoryName="Application">
204
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
205
-      <option name="MAIN_CLASS_NAME" />
206
-      <option name="VM_PARAMETERS" />
207
-      <option name="PROGRAM_PARAMETERS" />
208 193
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
209
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
210
-      <option name="ALTERNATIVE_JRE_PATH" />
211
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
212
-      <option name="ENV_VARIABLES" />
213
-      <option name="PASS_PARENT_ENVS" value="true" />
214
-      <module name="" />
215
-      <envs />
194
+      <method v="2">
195
+        <option name="Make" enabled="true" />
196
+      </method>
216 197
     </configuration>
217
-    <configuration default="true" type="JUnit" factoryName="JUnit">
218
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
219
-      <module name="" />
220
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
221
-      <option name="ALTERNATIVE_JRE_PATH" />
222
-      <option name="PACKAGE_NAME" />
223
-      <option name="MAIN_CLASS_NAME" />
224
-      <option name="METHOD_NAME" />
225
-      <option name="TEST_OBJECT" value="class" />
226
-      <option name="VM_PARAMETERS" value="-ea" />
227
-      <option name="PARAMETERS" />
198
+    <configuration name="ArrazTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
199
+      <module name="arraz" />
200
+      <option name="PACKAGE_NAME" value="" />
201
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
228 202
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
229
-      <option name="ENV_VARIABLES" />
230
-      <option name="PASS_PARENT_ENVS" value="true" />
231
-      <option name="TEST_SEARCH_SCOPE">
232
-        <value defaultName="singleModule" />
233
-      </option>
234
-      <envs />
235
-      <patterns />
203
+      <method v="2">
204
+        <option name="Make" enabled="true" />
205
+      </method>
236 206
     </configuration>
237
-    <configuration default="true" type="Remote" factoryName="Remote">
238
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
239
-      <option name="SERVER_MODE" value="false" />
240
-      <option name="SHMEM_ADDRESS" value="javadebug" />
241
-      <option name="HOST" value="localhost" />
242
-      <option name="PORT" value="5005" />
207
+    <configuration name="ArrazTest.test1FindValueAt" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
208
+      <module name="arraz" />
209
+      <option name="PACKAGE_NAME" value="" />
210
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
211
+      <option name="METHOD_NAME" value="test1FindValueAt" />
212
+      <option name="TEST_OBJECT" value="method" />
213
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
214
+      <method v="2">
215
+        <option name="Make" enabled="true" />
216
+      </method>
243 217
     </configuration>
244
-    <configuration default="true" type="TestNG" factoryName="TestNG">
245
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
246
-      <module name="" />
247
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
248
-      <option name="ALTERNATIVE_JRE_PATH" />
249
-      <option name="SUITE_NAME" />
250
-      <option name="PACKAGE_NAME" />
251
-      <option name="MAIN_CLASS_NAME" />
252
-      <option name="METHOD_NAME" />
253
-      <option name="GROUP_NAME" />
254
-      <option name="TEST_OBJECT" value="CLASS" />
255
-      <option name="VM_PARAMETERS" value="-ea" />
256
-      <option name="PARAMETERS" />
218
+    <configuration name="ArrazTest.test1findSmallerAndSecondSmaller" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
219
+      <module name="arraz" />
220
+      <option name="PACKAGE_NAME" value="" />
221
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
222
+      <option name="METHOD_NAME" value="test1findSmallerAndSecondSmaller" />
223
+      <option name="TEST_OBJECT" value="method" />
224
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
225
+      <method v="2">
226
+        <option name="Make" enabled="true" />
227
+      </method>
228
+    </configuration>
229
+    <configuration name="ArrazTest.test1getOddEvensOfArray" 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="test1getOddEvensOfArray" />
234
+      <option name="TEST_OBJECT" value="method" />
235
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
236
+      <method v="2">
237
+        <option name="Make" enabled="true" />
238
+      </method>
239
+    </configuration>
240
+    <configuration name="ArrazTest.test2FindValueAt" 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="test2FindValueAt" />
245
+      <option name="TEST_OBJECT" value="method" />
246
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
247
+      <method v="2">
248
+        <option name="Make" enabled="true" />
249
+      </method>
250
+    </configuration>
251
+    <configuration default="true" type="JUnit" factoryName="JUnit">
252
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
253
+      <method v="2">
254
+        <option name="Make" enabled="true" />
255
+      </method>
256
+    </configuration>
257
+    <configuration default="true" type="TestNG">
257 258
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
258
-      <option name="OUTPUT_DIRECTORY" />
259
-      <option name="ANNOTATION_TYPE" />
260
-      <option name="ENV_VARIABLES" />
261
-      <option name="PASS_PARENT_ENVS" value="true" />
262
-      <option name="TEST_SEARCH_SCOPE">
263
-        <value defaultName="singleModule" />
264
-      </option>
265
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
266
-      <option name="PROPERTIES_FILE" />
267
-      <envs />
268 259
       <properties />
269 260
       <listeners />
261
+      <method v="2">
262
+        <option name="Make" enabled="true" />
263
+      </method>
270 264
     </configuration>
271
-    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
265
+    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType">
272 266
       <module name="" />
273 267
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274 268
       <option name="PROGRAM_PARAMETERS" />
275
-      <predefined_log_file id="idea.log" enabled="true" />
269
+      <predefined_log_file enabled="true" id="idea.log" />
270
+      <method v="2">
271
+        <option name="Make" enabled="true" />
272
+      </method>
276 273
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
274
+    <list>
275
+      <item itemvalue="JUnit.ArrazTest" />
276
+      <item itemvalue="JUnit.ArrazTest.test1getOddEvensOfArray" />
277
+      <item itemvalue="JUnit.ArrazTest.test1FindValueAt" />
278
+      <item itemvalue="JUnit.ArrazTest.test2FindValueAt" />
279
+      <item itemvalue="JUnit.ArrazTest.test1findSmallerAndSecondSmaller" />
280
+    </list>
281
+    <recent_temporary>
282
+      <list>
283
+        <item itemvalue="JUnit.ArrazTest.test1findSmallerAndSecondSmaller" />
284
+        <item itemvalue="JUnit.ArrazTest" />
285
+        <item itemvalue="JUnit.ArrazTest.test2FindValueAt" />
286
+        <item itemvalue="JUnit.ArrazTest.test1FindValueAt" />
287
+        <item itemvalue="JUnit.ArrazTest.test1getOddEvensOfArray" />
288
+      </list>
289
+    </recent_temporary>
280 290
   </component>
281 291
   <component name="SvnConfiguration">
282 292
     <configuration />
@@ -291,6 +301,9 @@
291 301
       <workItem from="1543955862749" duration="2347000" />
292 302
       <workItem from="1543958998826" duration="113000" />
293 303
       <workItem from="1544020724645" duration="762000" />
304
+      <workItem from="1544059069745" duration="36974000" />
305
+      <workItem from="1544314595903" duration="34000" />
306
+      <workItem from="1544314708566" duration="9408000" />
294 307
     </task>
295 308
     <task id="LOCAL-00001" summary="readme and docs">
296 309
       <created>1544021313039</created>
@@ -302,158 +315,175 @@
302 315
     <option name="localTasksCounter" value="2" />
303 316
     <servers />
304 317
   </component>
318
+  <component name="TestHistory">
319
+    <history-entry file="ArrazTest_test1SortArrayIntoEvensThenOdds - 2018.12.08 at 22h 03m 18s.xml">
320
+      <configuration name="ArrazTest.test1SortArrayIntoEvensThenOdds" configurationId="JUnit" />
321
+    </history-entry>
322
+    <history-entry file="ArrazTest_test1SortArrayIntoEvensThenOdds - 2018.12.08 at 22h 04m 50s.xml">
323
+      <configuration name="ArrazTest.test1SortArrayIntoEvensThenOdds" configurationId="JUnit" />
324
+    </history-entry>
325
+    <history-entry file="ArrazTest_test1SortArrayIntoEvensThenOdds - 2018.12.08 at 22h 05m 42s.xml">
326
+      <configuration name="ArrazTest.test1SortArrayIntoEvensThenOdds" configurationId="JUnit" />
327
+    </history-entry>
328
+    <history-entry file="ArrazTest_test2SortArrayIntoEvensThenOdds - 2018.12.08 at 22h 07m 16s.xml">
329
+      <configuration name="ArrazTest.test2SortArrayIntoEvensThenOdds" configurationId="JUnit" />
330
+    </history-entry>
331
+    <history-entry file="ArrazTest_test2InsertAtStatAndCopy - 2018.12.08 at 22h 07m 35s.xml">
332
+      <configuration name="ArrazTest.test2InsertAtStatAndCopy" configurationId="JUnit" />
333
+    </history-entry>
334
+    <history-entry file="ArrazTest - 2018.12.08 at 22h 07m 48s.xml">
335
+      <configuration name="ArrazTest" configurationId="JUnit" />
336
+    </history-entry>
337
+    <history-entry file="ArrazTest_test1getOddEvensOfArray - 2018.12.08 at 22h 08m 35s.xml">
338
+      <configuration name="ArrazTest.test1getOddEvensOfArray" configurationId="JUnit" />
339
+    </history-entry>
340
+    <history-entry file="ArrazTest_test1FindValueAt - 2018.12.08 at 22h 11m 58s.xml">
341
+      <configuration name="ArrazTest.test1FindValueAt" configurationId="JUnit" />
342
+    </history-entry>
343
+    <history-entry file="ArrazTest_test1FindValueAt - 2018.12.08 at 22h 12m 11s.xml">
344
+      <configuration name="ArrazTest.test1FindValueAt" configurationId="JUnit" />
345
+    </history-entry>
346
+    <history-entry file="ArrazTest_test2FindValueAt - 2018.12.08 at 22h 12m 43s.xml">
347
+      <configuration name="ArrazTest.test2FindValueAt" configurationId="JUnit" />
348
+    </history-entry>
349
+  </component>
305 350
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
351
+    <option name="totallyTimeSpent" value="49638000" />
307 352
   </component>
308 353
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
354
+    <frame x="0" y="26" width="1280" height="713" extended-state="0" />
310 355
     <editor active="true" />
311 356
     <layout>
312
-      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
313
-      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
314
-      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
315
-      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
316
-      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
317
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
318
-      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
319
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
320
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
321
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
322
-      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
323
-      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
324
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2577389" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
325
-      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
326
-      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
327
-      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
328
-      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
329
-      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
330
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
331
-      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
332
-      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
333
-      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
334
-      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
335
-      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
336
-      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
337
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
357
+      <window_info content_ui="combo" id="Project" order="0" weight="0.5589661" />
358
+      <window_info id="Structure" order="1" weight="0.24959612" />
359
+      <window_info id="Image Layers" order="2" />
360
+      <window_info id="Designer" order="3" />
361
+      <window_info id="UI Designer" order="4" />
362
+      <window_info id="Capture Tool" order="5" />
363
+      <window_info id="Favorites" order="6" side_tool="true" />
364
+      <window_info anchor="bottom" id="Docker" show_stripe_button="false" />
365
+      <window_info anchor="bottom" id="Message" order="0" />
366
+      <window_info anchor="bottom" id="Find" order="1" weight="0.32876712" />
367
+      <window_info anchor="bottom" id="Run" order="2" weight="0.38486314" />
368
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
369
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
370
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
371
+      <window_info anchor="bottom" id="TODO" order="6" />
372
+      <window_info anchor="bottom" id="Terminal" order="7" />
373
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
374
+      <window_info anchor="bottom" id="Version Control" order="9" />
375
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
376
+      <window_info active="true" anchor="bottom" id="Messages" order="11" visible="true" weight="0.3252818" />
377
+      <window_info anchor="right" id="Maven" />
378
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
379
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
380
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
381
+      <window_info anchor="right" id="Palette" order="3" />
382
+      <window_info anchor="right" id="Capture Analysis" order="4" />
383
+      <window_info anchor="right" id="Theme Preview" order="5" />
384
+      <window_info anchor="right" id="Database" order="6" />
385
+      <window_info anchor="right" id="Palette&#9;" order="7" />
386
+      <window_info anchor="right" id="Maven Projects" order="8" />
387
+      <window_info anchor="right" id="SciView" order="9" />
338 388
     </layout>
339 389
   </component>
340 390
   <component name="TypeScriptGeneratedFilesManager">
341 391
     <option name="version" value="1" />
342 392
   </component>
343
-  <component name="VcsContentAnnotationSettings">
344
-    <option name="myLimit" value="2678400000" />
345
-  </component>
346 393
   <component name="VcsManagerConfiguration">
347 394
     <MESSAGE value="readme and docs" />
348 395
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349 396
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354 397
   <component name="editorHistoryManager">
355
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
356
-      <provider selected="true" editor-type-id="text-editor">
357
-        <state relative-caret-position="0">
358
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
359
-          <folding />
360
-        </state>
361
-      </provider>
362
-    </entry>
363
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
364
-      <provider selected="true" editor-type-id="text-editor">
365
-        <state relative-caret-position="0">
366
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
367
-          <folding />
368
-        </state>
369
-      </provider>
370
-    </entry>
371
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
372
-      <provider selected="true" editor-type-id="text-editor">
373
-        <state relative-caret-position="34">
374
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
375
-          <folding />
376
-        </state>
377
-      </provider>
378
-    </entry>
379 398
     <entry file="file://$PROJECT_DIR$/README.md">
380 399
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
381 400
         <state split_layout="SPLIT">
382
-          <first_editor relative-caret-position="1241">
383
-            <caret line="73" column="0" lean-forward="true" selection-start-line="73" selection-start-column="0" selection-end-line="73" selection-end-column="0" />
384
-            <folding />
401
+          <first_editor relative-caret-position="270">
402
+            <caret line="18" selection-start-line="18" selection-end-line="18" />
385 403
           </first_editor>
386 404
           <second_editor />
387 405
         </state>
388 406
       </provider>
389 407
     </entry>
390
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
408
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/util/Iterator.java">
391 409
       <provider selected="true" editor-type-id="text-editor">
392
-        <state relative-caret-position="0">
393
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
394
-          <folding />
410
+        <state relative-caret-position="383">
411
+          <caret line="53" column="17" selection-start-line="53" selection-start-column="17" selection-end-line="53" selection-end-column="17" />
395 412
         </state>
396 413
       </provider>
397 414
     </entry>
398
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
415
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/util/Arrays.java">
399 416
       <provider selected="true" editor-type-id="text-editor">
400
-        <state relative-caret-position="0">
401
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
402
-          <folding />
417
+        <state relative-caret-position="-19610">
418
+          <caret line="70" column="13" selection-start-line="70" selection-start-column="13" selection-end-line="70" selection-end-column="13" />
403 419
         </state>
404 420
       </provider>
405 421
     </entry>
406
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
422
+    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
423
+      <provider selected="true" editor-type-id="text-editor" />
424
+    </entry>
425
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
407 426
       <provider selected="true" editor-type-id="text-editor">
408
-        <state relative-caret-position="34">
409
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
410
-          <folding />
427
+        <state relative-caret-position="255">
428
+          <caret line="25" selection-start-line="25" selection-end-line="25" />
429
+          <folding>
430
+            <element signature="e#180#181#0" expanded="true" />
431
+            <element signature="e#206#207#0" expanded="true" />
432
+            <element signature="e#241#242#0" expanded="true" />
433
+            <element signature="e#271#272#0" expanded="true" />
434
+            <element signature="e#298#299#0" expanded="true" />
435
+            <element signature="e#324#325#0" expanded="true" />
436
+            <element signature="e#359#360#0" expanded="true" />
437
+            <element signature="e#389#390#0" expanded="true" />
438
+          </folding>
411 439
         </state>
412 440
       </provider>
413 441
     </entry>
414
-    <entry file="file://$PROJECT_DIR$/README.md">
415
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
416
-        <state split_layout="SPLIT">
417
-          <first_editor relative-caret-position="1241">
418
-            <caret line="73" column="0" lean-forward="true" selection-start-line="73" selection-start-column="0" selection-end-line="73" selection-end-column="0" />
419
-            <folding />
420
-          </first_editor>
421
-          <second_editor />
442
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/lib/tools.jar!/com/sun/tools/javac/util/ArrayUtils.class">
443
+      <provider selected="true" editor-type-id="text-editor">
444
+        <state relative-caret-position="83">
445
+          <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
422 446
         </state>
423 447
       </provider>
424 448
     </entry>
425
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
449
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
426 450
       <provider selected="true" editor-type-id="text-editor">
427
-        <state relative-caret-position="0">
428
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
429
-          <folding />
451
+        <state relative-caret-position="-231">
452
+          <caret line="4" column="22" selection-start-line="4" selection-start-column="22" selection-end-line="4" selection-end-column="22" />
453
+          <folding>
454
+            <element signature="e#195#196#0" expanded="true" />
455
+            <element signature="e#222#223#0" expanded="true" />
456
+            <element signature="e#259#260#0" expanded="true" />
457
+            <element signature="e#291#292#0" expanded="true" />
458
+            <element signature="e#320#321#0" expanded="true" />
459
+            <element signature="e#348#349#0" expanded="true" />
460
+            <element signature="e#387#388#0" expanded="true" />
461
+            <element signature="e#421#422#0" expanded="true" />
462
+          </folding>
430 463
         </state>
431 464
       </provider>
432 465
     </entry>
433 466
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
434 467
       <provider selected="true" editor-type-id="text-editor">
435
-        <state relative-caret-position="0">
436
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
437
-          <folding />
468
+        <state relative-caret-position="278">
469
+          <caret line="256" column="45" selection-start-line="256" selection-start-column="17" selection-end-line="256" selection-end-column="45" />
470
+          <folding>
471
+            <element signature="e#5834#5835#0" expanded="true" />
472
+            <element signature="e#5891#5892#0" expanded="true" />
473
+            <element signature="e#6824#6833#0" expanded="true" />
474
+            <element signature="e#6877#6886#0" expanded="true" />
475
+          </folding>
438 476
         </state>
439 477
       </provider>
440 478
     </entry>
441 479
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
442 480
       <provider selected="true" editor-type-id="text-editor">
443
-        <state relative-caret-position="34">
444
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
445
-          <folding />
446
-        </state>
447
-      </provider>
448
-    </entry>
449
-    <entry file="file://$PROJECT_DIR$/README.md">
450
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
451
-        <state split_layout="SPLIT">
452
-          <first_editor relative-caret-position="306">
453
-            <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
454
-            <folding />
455
-          </first_editor>
456
-          <second_editor />
481
+        <state relative-caret-position="274">
482
+          <caret line="428" column="43" selection-start-line="428" selection-start-column="43" selection-end-line="428" selection-end-column="43" />
483
+          <folding>
484
+            <element signature="imports" expanded="true" />
485
+            <element signature="e#8533#8542#0" expanded="true" />
486
+          </folding>
457 487
         </state>
458 488
       </provider>
459 489
     </entry>

+ 16
- 0
arraz/.idea/compiler.xml 파일 보기

@@ -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="1.5" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
arraz/.idea/libraries/Maven__junit_junit_4_0.xml 파일 보기

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

+ 13
- 0
arraz/.idea/misc.xml 파일 보기

@@ -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_11" project-jdk-name="11" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
13
+</project>

+ 8
- 0
arraz/.idea/modules.xml 파일 보기

@@ -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 파일 보기

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

+ 205
- 0
arraz/.idea/workspace.xml 파일 보기

@@ -0,0 +1,205 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="0c2c6f8b-1924-4233-96d3-547219bcb47b" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/arraz.iml" beforeDir="false" />
6
+    </list>
7
+    <ignored path="$PROJECT_DIR$/target/" />
8
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
+    <option name="SHOW_DIALOG" value="false" />
10
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
+    <option name="LAST_RESOLUTION" value="IGNORE" />
13
+  </component>
14
+  <component name="FUSProjectUsageTrigger">
15
+    <session id="1496889644">
16
+      <usages-collector id="statistics.lifecycle.project">
17
+        <counts>
18
+          <entry key="project.closed" value="1" />
19
+          <entry key="project.open.time.0" value="1" />
20
+          <entry key="project.opened" value="1" />
21
+        </counts>
22
+      </usages-collector>
23
+    </session>
24
+  </component>
25
+  <component name="Git.Settings">
26
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
27
+  </component>
28
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
29
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
30
+  <component name="JsGulpfileManager">
31
+    <detection-done>true</detection-done>
32
+    <sorting>DEFINITION_ORDER</sorting>
33
+  </component>
34
+  <component name="ProjectFrameBounds">
35
+    <option name="y" value="23" />
36
+    <option name="width" value="638" />
37
+    <option name="height" value="713" />
38
+  </component>
39
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
40
+  <component name="ProjectView">
41
+    <navigator proportions="" version="1">
42
+      <foldersAlwaysOnTop value="true" />
43
+    </navigator>
44
+    <panes>
45
+      <pane id="ProjectPane" />
46
+      <pane id="Scope" />
47
+      <pane id="PackagesPane" />
48
+    </panes>
49
+  </component>
50
+  <component name="PropertiesComponent">
51
+    <property name="WebServerToolWindowFactoryState" value="false" />
52
+    <property name="aspect.path.notification.shown" value="true" />
53
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
54
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
55
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
56
+  </component>
57
+  <component name="RunDashboard">
58
+    <option name="ruleStates">
59
+      <list>
60
+        <RuleState>
61
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
62
+        </RuleState>
63
+        <RuleState>
64
+          <option name="name" value="StatusDashboardGroupingRule" />
65
+        </RuleState>
66
+      </list>
67
+    </option>
68
+  </component>
69
+  <component name="RunManager">
70
+    <configuration default="true" type="tests" factoryName="Nosetests">
71
+      <option name="INTERPRETER_OPTIONS" value="" />
72
+      <option name="PARENT_ENVS" value="true" />
73
+      <option name="SDK_HOME" value="" />
74
+      <option name="WORKING_DIRECTORY" value="" />
75
+      <option name="IS_MODULE_SDK" value="false" />
76
+      <option name="ADD_CONTENT_ROOTS" value="true" />
77
+      <option name="ADD_SOURCE_ROOTS" value="true" />
78
+      <module name="" />
79
+      <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
80
+      <option name="_new_regexPattern" value="&quot;&quot;" />
81
+      <option name="_new_additionalArguments" value="&quot;&quot;" />
82
+      <option name="_new_target" value="&quot;&quot;" />
83
+      <option name="_new_targetType" value="&quot;PATH&quot;" />
84
+      <method v="2" />
85
+    </configuration>
86
+    <configuration default="true" type="tests" factoryName="Twisted Trial">
87
+      <option name="INTERPRETER_OPTIONS" value="" />
88
+      <option name="PARENT_ENVS" value="true" />
89
+      <option name="SDK_HOME" value="" />
90
+      <option name="WORKING_DIRECTORY" value="" />
91
+      <option name="IS_MODULE_SDK" value="false" />
92
+      <option name="ADD_CONTENT_ROOTS" value="true" />
93
+      <option name="ADD_SOURCE_ROOTS" value="true" />
94
+      <module name="" />
95
+      <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
96
+      <option name="_new_additionalArguments" value="&quot;&quot;" />
97
+      <option name="_new_target" value="&quot;&quot;" />
98
+      <option name="_new_targetType" value="&quot;PATH&quot;" />
99
+      <method v="2" />
100
+    </configuration>
101
+    <configuration default="true" type="tests" factoryName="Unittests">
102
+      <option name="INTERPRETER_OPTIONS" value="" />
103
+      <option name="PARENT_ENVS" value="true" />
104
+      <option name="SDK_HOME" value="" />
105
+      <option name="WORKING_DIRECTORY" value="" />
106
+      <option name="IS_MODULE_SDK" value="false" />
107
+      <option name="ADD_CONTENT_ROOTS" value="true" />
108
+      <option name="ADD_SOURCE_ROOTS" value="true" />
109
+      <module name="" />
110
+      <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
111
+      <option name="_new_additionalArguments" value="&quot;&quot;" />
112
+      <option name="_new_target" value="&quot;&quot;" />
113
+      <option name="_new_targetType" value="&quot;PATH&quot;" />
114
+      <method v="2" />
115
+    </configuration>
116
+    <configuration default="true" type="tests" factoryName="py.test">
117
+      <option name="INTERPRETER_OPTIONS" value="" />
118
+      <option name="PARENT_ENVS" value="true" />
119
+      <option name="SDK_HOME" value="" />
120
+      <option name="WORKING_DIRECTORY" value="" />
121
+      <option name="IS_MODULE_SDK" value="false" />
122
+      <option name="ADD_CONTENT_ROOTS" value="true" />
123
+      <option name="ADD_SOURCE_ROOTS" value="true" />
124
+      <module name="" />
125
+      <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
126
+      <option name="_new_keywords" value="&quot;&quot;" />
127
+      <option name="_new_additionalArguments" value="&quot;&quot;" />
128
+      <option name="_new_target" value="&quot;&quot;" />
129
+      <option name="_new_targetType" value="&quot;PATH&quot;" />
130
+      <method v="2" />
131
+    </configuration>
132
+  </component>
133
+  <component name="SvnConfiguration">
134
+    <configuration />
135
+  </component>
136
+  <component name="TaskManager">
137
+    <task active="true" id="Default" summary="Default task">
138
+      <changelist id="0c2c6f8b-1924-4233-96d3-547219bcb47b" name="Default Changelist" comment="" />
139
+      <created>1544059041471</created>
140
+      <option name="number" value="Default" />
141
+      <option name="presentableId" value="Default" />
142
+      <updated>1544059041471</updated>
143
+      <workItem from="1544059042867" duration="9000" />
144
+    </task>
145
+    <servers />
146
+  </component>
147
+  <component name="TimeTrackingManager">
148
+    <option name="totallyTimeSpent" value="9000" />
149
+  </component>
150
+  <component name="ToolWindowManager">
151
+    <frame x="0" y="23" width="638" height="713" extended-state="0" />
152
+    <layout>
153
+      <window_info id="Image Layers" />
154
+      <window_info id="Designer" />
155
+      <window_info id="UI Designer" />
156
+      <window_info id="Capture Tool" />
157
+      <window_info id="Favorites" side_tool="true" />
158
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
159
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
160
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
161
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
162
+      <window_info anchor="bottom" id="Terminal" />
163
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
164
+      <window_info anchor="bottom" id="Message" order="0" />
165
+      <window_info anchor="bottom" id="Find" order="1" />
166
+      <window_info anchor="bottom" id="Run" order="2" />
167
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
168
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
169
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
170
+      <window_info anchor="bottom" id="TODO" order="6" />
171
+      <window_info anchor="right" id="Palette" />
172
+      <window_info anchor="right" id="Theme Preview" />
173
+      <window_info anchor="right" id="Capture Analysis" />
174
+      <window_info anchor="right" id="Palette&#9;" />
175
+      <window_info anchor="right" id="SciView" />
176
+      <window_info anchor="right" id="Database" />
177
+      <window_info anchor="right" id="Maven Projects" />
178
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
179
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
180
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
181
+    </layout>
182
+  </component>
183
+  <component name="TypeScriptGeneratedFilesManager">
184
+    <option name="version" value="1" />
185
+  </component>
186
+  <component name="VcsContentAnnotationSettings">
187
+    <option name="myLimit" value="2678400000" />
188
+  </component>
189
+  <component name="masterDetails">
190
+    <states>
191
+      <state key="ProjectJDKs.UI">
192
+        <settings>
193
+          <last-edited>1.8</last-edited>
194
+          <splitter-proportions>
195
+            <option name="proportions">
196
+              <list>
197
+                <option value="0.2" />
198
+              </list>
199
+            </option>
200
+          </splitter-proportions>
201
+        </settings>
202
+      </state>
203
+    </states>
204
+  </component>
205
+</project>

+ 2
- 3
arraz/arraz.iml 파일 보기

@@ -1,15 +1,14 @@
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_6">
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 13
     <orderEntry type="library" name="Maven: junit:junit:4.0" level="project" />
15 14
   </component>

+ 12
- 0
arraz/pom.xml 파일 보기

@@ -7,6 +7,18 @@
7 7
     <groupId>rocks.zipcode.arraysgonewild</groupId>
8 8
     <artifactId>arraz</artifactId>
9 9
     <version>1.0-SNAPSHOT</version>
10
+    <build>
11
+        <plugins>
12
+            <plugin>
13
+                <groupId>org.apache.maven.plugins</groupId>
14
+                <artifactId>maven-compiler-plugin</artifactId>
15
+                <configuration>
16
+                    <source>6</source>
17
+                    <target>6</target>
18
+                </configuration>
19
+            </plugin>
20
+        </plugins>
21
+    </build>
10 22
     <dependencies>
11 23
         <dependency>
12 24
             <groupId>junit</groupId>

+ 311
- 0
arraz/src/main/java/Arraz.java 파일 보기

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

+ 27
- 0
arraz/src/main/java/MaxMin.java 파일 보기

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

+ 43
- 0
arraz/src/main/java/OddEven.java 파일 보기

@@ -0,0 +1,43 @@
1
+public class OddEven {
2
+    public int odds;
3
+    public int evens;
4
+
5
+    public OddEven() {
6
+    }
7
+
8
+    public OddEven(int odds, int evens) {
9
+        this.odds = odds;
10
+        this.evens = evens;
11
+    }
12
+
13
+    public int getOdds() {
14
+        return odds;
15
+    }
16
+
17
+    public void setOdds(int odds) {
18
+        this.odds = odds;
19
+    }
20
+
21
+    public int getEvens() {
22
+        return evens;
23
+    }
24
+
25
+    public void setEvens(int evens) {
26
+        this.evens = evens;
27
+    }
28
+
29
+    @Override
30
+    public boolean equals(Object obj) {
31
+        if (this == obj) {return true;
32
+        } else if (obj ==null || getClass() != obj.getClass()) {
33
+            return false;
34
+        }
35
+        OddEven oddEven = (OddEven) obj;
36
+
37
+
38
+        return odds == oddEven.odds &&
39
+                evens== oddEven.evens;
40
+    }
41
+
42
+
43
+}

+ 524
- 1
arraz/src/test/java/ArrazTest.java 파일 보기

@@ -1,5 +1,528 @@
1
-import static org.junit.Assert.*;
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+import java.util.ArrayList;
5
+import java.util.Arrays;
6
+import java.util.List;
7
+
8
+
2 9
 
3 10
 public class ArrazTest {
11
+   Arraz arraz = new Arraz();
12
+
13
+    @Test
14
+    public void test1SumValueOfArrayInt() {
15
+        Integer[] spiffyHandyIntArray ={4, 5, 102, 6, -7, 12, -32, 92, 8};
16
+
17
+        int expected = 190;
18
+        int actual = arraz.sumValuesOfArray(spiffyHandyIntArray);
19
+        Assert.assertEquals(expected, actual);
20
+
21
+
22
+    }
23
+
24
+    @Test
25
+    public void test2SumValueOfArrayInt() {
26
+        Integer[] spiffyHandyIntArray = { 4, 5, 6, -7, 12, -32, 92};
27
+
28
+        int expecte = 80;
29
+        int actual = arraz.sumValuesOfArray(spiffyHandyIntArray);
30
+        Assert.assertEquals(expecte, actual);
31
+
32
+
33
+    }
34
+
35
+
36
+    @Test
37
+    public void test1SumValueOfArrayDouble() {
38
+        double[] spiffyHandyDoubleArray = new double[]{1.0, 0.5, 3.6, 3.14159};
39
+
40
+
41
+        double expecte = 8.24159;
42
+        double actual = arraz.sumDoublesOfArray(spiffyHandyDoubleArray);
43
+        Assert.assertEquals(expecte, actual, 0.00001);
44
+
45
+
46
+    }
47
+
48
+    @Test
49
+    public void test2SumValueOfArrayDouble() {
50
+        double[] spiffyHandyDoubleArray = new double[]{1.0, 0.5, 3.6 - 0.8};
51
+
52
+
53
+        double expecte = 4.3;
54
+        double actual = arraz.sumDoublesOfArray(spiffyHandyDoubleArray);
55
+        Assert.assertEquals(expecte, actual, 0.01);
56
+
57
+
58
+    }
59
+
60
+    @Test
61
+    public void test1AverageOfArray() {
62
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92,};
63
+        int expected = 11;
64
+        int actual = arraz.averageOfArray(spiffyHandyIntArray);
65
+        Assert.assertEquals(expected, actual);
66
+    }
67
+
68
+    @Test
69
+    public void test2AverageOfArray() {
70
+        Integer[] spiffyHandyIntArray = {4, 5, 6, 10};
71
+        int expected = 6;
72
+        int actual = arraz.averageOfArray(spiffyHandyIntArray);
73
+        Assert.assertEquals(expected, actual);
74
+    }
75
+
76
+    @Test
77
+    public void test1DoubleAverageOfArray() {
78
+        double[] spiffyHandyIntArray = new double[]{4.3, 5.9, 6.09, 10.8};
79
+        double expected = 6.77;
80
+        double actual = arraz.doubleAverageOfArray(spiffyHandyIntArray);
81
+        Assert.assertEquals(expected, actual, 0.01);
82
+    }
83
+
84
+    @Test
85
+    public void test2DoubleAverageOfArray() {
86
+        double[] spiffyHandyIntArray = new double[]{8.0, 9.9, 8.009, 77.06};
87
+        double expected = 25.742;
88
+        double actual = arraz.doubleAverageOfArray(spiffyHandyIntArray);
89
+        Assert.assertEquals(expected, actual, 0.001);
90
+    }
91
+
92
+
93
+    @Test
94
+    public void test1ContainsValue() {
95
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92,};
96
+        int num = -32;
97
+        Assert.assertTrue(arraz.containValue(spiffyHandyIntArray, num));
98
+
99
+
100
+    }
101
+
102
+    @Test
103
+    public void test2ContainsValue() {
104
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92,};
105
+        int num = 6;
106
+        Assert.assertTrue(arraz.containValue(spiffyHandyIntArray, num));
107
+
108
+
109
+    }
110
+
111
+
112
+    @Test
113
+    public void test1ReverseArray() {
114
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92,};
115
+
116
+        Integer[] expected = {92, -32, 12, -7, 6, 5, 4};
117
+        Integer[] actual = arraz.reverseArray(spiffyHandyIntArray);
118
+         Assert.assertTrue(Arrays.equals(expected,actual));
119
+
120
+
121
+    }
122
+
123
+    @Test
124
+    public void test2ReverseArray() {
125
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92,};
126
+
127
+        Integer[] expected = {92, -32, 12, -7, 6, 5, 4};
128
+        Integer[] actual = arraz.reverseArray(spiffyHandyIntArray);
129
+         Assert.assertTrue(Arrays.equals(expected,actual));
130
+
131
+
132
+    }
133
+
134
+    @Test
135
+    public void test1getOddEvensOfArray() {
136
+
137
+        int[] spiffyHandyIntArray = {4, 5, 6};
138
+        OddEven expected = new OddEven(5, 4);
139
+        OddEven actual = arraz.getOddEvensOfArray(spiffyHandyIntArray);
140
+        Assert.assertEquals( expected, actual);
141
+
142
+
143
+    }
144
+
145
+    @Test
146
+    public void test2getOddEvensOfArray() {
147
+        int[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92,};
148
+        OddEven expected = new OddEven(-7, 12);
149
+        OddEven actual = arraz.getOddEvensOfArray(spiffyHandyIntArray);
150
+        Assert.assertEquals(expected, actual);
151
+
152
+
153
+    }
154
+
155
+    @Test
156
+    public void test1FindIndexOff() {
157
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92};
158
+
159
+        int expected = 3;
160
+        int actual = arraz.findIndexOf(spiffyHandyIntArray, -7);
161
+        Assert.assertEquals(expected, actual);
162
+    }
163
+
164
+    @Test
165
+    public void test2FindIndexOff() {
166
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92};
167
+        int expected = 0;
168
+        int actual = arraz.findIndexOf(spiffyHandyIntArray, 4);
169
+        Assert.assertEquals(expected, actual);
170
+    }
171
+    @Test
172
+    public void test1FindValueAt(){
173
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92};
174
+        int expected = 12;
175
+        int actual = arraz.findValueAt(spiffyHandyIntArray, 4);
176
+        Assert.assertEquals(expected,actual);
177
+    }@Test
178
+    public void test2FindValueAt(){
179
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92};
180
+        int expected = -32;
181
+        int actual = arraz.findValueAt(spiffyHandyIntArray, 5);
182
+        Assert.assertEquals(expected,actual);
183
+    }
184
+
185
+
186
+    @Test
187
+    public void test1CopyArrayByInterator() {
188
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92};
189
+        Integer[] expected = {4, 5, 6, -7, 12, -32, 92};
190
+        Integer[] actual = arraz.copyArrayByInterator(spiffyHandyIntArray);
191
+
192
+        Assert.assertEquals(expected, actual);
193
+
194
+
195
+    }
196
+
197
+    @Test
198
+    public void test2CopyArrayByInterator() {
199
+        Integer[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92};
200
+        Integer[] expected = {4, 5, 6, -7, 12, -32, 92};
201
+        Integer[] actual = arraz.copyArrayByInterator(spiffyHandyIntArray);
202
+
203
+        Assert.assertEquals(expected, actual);
204
+
205
+
206
+    }
207
+
208
+    @Test
209
+    public void test1CopyArrayByLoop() {
210
+        int[] spiffyHandyIntArray = {4, 5, 6, -7, 12, -32, 92};
211
+        int[] expected = {4, 5, 6, -7, 12, -32, 92};
212
+        int [] actual = arraz.copyArrayByloop(spiffyHandyIntArray);
213
+
214
+        Assert.assertTrue(Arrays.equals(expected,actual));
215
+
216
+
217
+    }
218
+
219
+    @Test
220
+    public void test2CopyArrayByLoop() {
221
+        int[] spiffyHandyIntArray = {4, 5, 6};
222
+        int[] expected = {4, 5, 6};
223
+        int [] actual = arraz.copyArrayByloop(spiffyHandyIntArray);
224
+
225
+        Assert.assertTrue(Arrays.equals(expected, actual));
226
+
227
+
228
+    }
229
+    @Test
230
+    public void test1RemoveElementFromArray(){
231
+        Integer[] spiffyHandyIntArray = {4, 5, 6};
232
+
233
+        arraz.removeElemetFromArray(spiffyHandyIntArray, 2);
234
+        Assert.assertFalse(arraz.containValue(spiffyHandyIntArray,2));
235
+    }
236
+    @Test
237
+    public void test2RemoveElementFromArray(){
238
+        Integer[] spiffyHandyIntArray = {4, 5, 6};
239
+        int expected = 0;
240
+        arraz.removeElemetFromArray(spiffyHandyIntArray, 6);
241
+        Assert.assertEquals(arraz.findIndexOf(spiffyHandyIntArray,5), expected);
242
+}
243
+
244
+@Test
245
+    public void test1InsertIntoArrayAt(){
246
+    Integer[] spiffyHandyIntArray = {4, 5, 6};
247
+    Integer  num = 8;
248
+    int expected = 0;
249
+
250
+    arraz.insertIntoArrayAt(spiffyHandyIntArray, num, 0);
251
+
252
+    Assert.assertEquals(expected, arraz.findIndexOf(spiffyHandyIntArray, 8));
253
+
254
+}
255
+    @Test
256
+    public void test2InsertIntoArrayAt() {
257
+        Integer[] spiffyHandyIntArray = {4, 5, 6};
258
+        Integer num = 7;
259
+        int expected = 0;
260
+
261
+        arraz.insertIntoArrayAt(spiffyHandyIntArray, num, 2);
262
+
263
+
264
+        Assert.assertEquals(expected, arraz.findIndexOf(spiffyHandyIntArray, 8));
265
+    }
266
+    @Test
267
+    public void test1FindMaxMinOfArray() {
268
+
269
+        Integer[] spiffyHandyIntArray = {4, 5, 6};
270
+        MaxMin expected = new MaxMin(6, 4);
271
+        MaxMin actual = arraz.findMaxMinOfArray(spiffyHandyIntArray);
272
+        Assert.assertEquals(expected, actual);
273
+    }
274
+    @Test
275
+    public void test2FindMaxMinOfArray() {
276
+
277
+        Integer[] spiffyHandyIntArray = {8,3,90};
278
+        MaxMin expected = new MaxMin(90, 3);
279
+        MaxMin actual = arraz.findMaxMinOfArray(spiffyHandyIntArray);
280
+        Assert.assertEquals(expected, actual);
281
+    }
282
+@Test
283
+    public void test1RemoveDupesFromArray(){
284
+    Integer[] spiffyHandyIntArray = {8, 8, 3,90, 90,77,8};
285
+    Integer [] expected = {8,3,90,77};
286
+    Integer [] actual = arraz.removeDupesFromArray(spiffyHandyIntArray);
287
+    Assert.assertTrue(Arrays.equals(expected,actual));
288
+}
289
+
290
+    @Test
291
+    public void test2RemoveDupesFromArray(){
292
+        Integer[] spiffyHandyIntArray = {-1,-1,22,66,22,8,90,90};
293
+        Integer [] expected = {-1,22,66,8,90};
294
+        Integer [] actual = arraz.removeDupesFromArray(spiffyHandyIntArray);
295
+        Assert.assertTrue(Arrays.equals(expected,actual));
296
+    }
297
+    @Test
298
+     public void test1find2ndLargestValueFromArray(){
299
+        double[] spiffyHandyIntArray = {8.3, 8.7, 3.90, 90.77};
300
+        double expected = 8.7;
301
+
302
+        double actual = arraz.find2ndLargestValueFromArrayDouble(spiffyHandyIntArray);
303
+         Assert.assertEquals(expected,actual, 0.001);
304
+    }
305
+
306
+    @Test
307
+    public void test2find2ndLargestValueFromArray(){
308
+        double[] spiffyHandyIntArray = {4.99,99.5,8.95};
309
+        double expected = 8.95;
310
+
311
+        double actual = arraz.find2ndLargestValueFromArrayDouble(spiffyHandyIntArray);
312
+        Assert.assertEquals(expected,actual, 0.001);
313
+    }
314
+    @Test
315
+   public void test1makeMeAnArrayListFromArray(){
316
+        Integer[] spiffyHandyIntArray = {4,99,8,};
317
+        List<Integer> list = new ArrayList<Integer>();
318
+        list.add(4);
319
+        list.add(99);
320
+        list.add(8);
321
+        List<Integer> actual = arraz.makeMeAnArrayListFromArray(spiffyHandyIntArray);
322
+
323
+        Assert.assertEquals(list,actual);
324
+
325
+
326
+    }
327
+    @Test
328
+    public void test2makeMeAnArrayListFromArray(){
329
+        Integer[] spiffyHandyIntArray = {22,100,3};
330
+        List<Integer> list = new ArrayList<Integer>();
331
+        list.add(22);
332
+        list.add(100);
333
+        list.add(3);
334
+        List<Integer> actual = arraz.makeMeAnArrayListFromArray(spiffyHandyIntArray);
335
+
336
+        Assert.assertEquals(list,actual);
337
+
338
+
339
+    }
340
+    @Test
341
+    public void test1MakeAnArrayFromList(){
342
+
343
+        List<Integer> list = new ArrayList<Integer>();
344
+        list.add(22);
345
+        list.add(100);
346
+        list.add(3);
347
+        Integer [] expecte = {22,100,3};
348
+       Integer [] actual = arraz.makeMeAnArrayFromArrayList(list);
349
+
350
+
351
+        Assert.assertEquals(expecte,actual);
352
+
353
+
354
+    }
355
+
356
+    @Test
357
+    public void test2MakeAnArrayFromList(){
358
+
359
+        List<Integer> list = new ArrayList<Integer>();
360
+        list.add(1);
361
+        list.add(10);
362
+        list.add(3);
363
+        Integer [] expecte = {1,10,3};
364
+        Integer [] actual = arraz.makeMeAnArrayFromArrayList(list);
365
+
366
+
367
+        Assert.assertEquals(expecte,actual);
368
+
369
+
370
+    }
371
+    @Test
372
+    public void test1check2ArraysForEqual(){
373
+        int [] arr1 = {1,2,3};
374
+        int [] arr2 = { 1,2,3};
375
+        Assert.assertTrue(arraz.check2ArraysForEqual(arr1,arr2));
376
+    }
377
+
378
+    @Test
379
+    public void test2check2ArraysForEqual(){
380
+        int [] arr1 = {1,2,22,3,45};
381
+        int [] arr2 = { 1,2,22,3,45};
382
+        Assert.assertTrue(arraz.check2ArraysForEqual(arr1,arr2));
383
+    }
384
+    @Test
385
+    public void test1averageArrayWithoutMaxMin(){
386
+        Integer [] arr1 = {1,2,22,3,45,33};
387
+        int expected = 9;
388
+        int actual = arraz.averageArrayWithoutMaxMin(arr1);
389
+        Assert.assertEquals(expected,actual);
390
+    }
391
+    @Test
392
+    public void test2averageArrayWithoutMaxMin(){
393
+        Integer [] arr1 = {1,2,3,4,33};
394
+        int expected = 3;
395
+        int actual = arraz.averageArrayWithoutMaxMin(arr1);
396
+        Assert.assertEquals(expected,actual);
397
+    }
398
+    @Test
399
+     public void test1arrayHas65and77(){
400
+        Integer [] arr1 = {65,77};
401
+
402
+        Assert.assertTrue(arraz.arrayHas65and77(arr1));
403
+
404
+     }
405
+    @Test
406
+    public void test2arrayHas65and77(){
407
+        Integer[] arr1 = {1,2,3,4,33};
408
+
409
+        Assert.assertFalse(arraz.arrayHas65and77(arr1));
410
+
411
+    }
412
+
413
+    @Test
414
+    public void test1theTotalOfTensIs30(){
415
+        int [] arr1 = {1,20,10,4,10,5,6,10};
416
+        Assert.assertTrue(arraz.theTotalofTensIs30(arr1));
417
+    }
418
+    @Test
419
+    public void test2theTotalOfTensIs30(){
420
+        int [] arr1 = {1,20,10,4,5,6,10};
421
+        Assert.assertFalse(arraz.theTotalofTensIs30(arr1));
422
+    }
423
+
424
+    @Test
425
+    public void test1findSmallerAndSecondSmaller(){
426
+        Integer[] arr1 = {1,20,10,4,5,6,10};
427
+        int expected = 14;
428
+        int actual = arraz.findSmallerAndSecondSmaller(arr1);
429
+        Assert.assertEquals(expected,actual);
430
+    }
431
+    @Test
432
+    public void test2findSmallerAndSecondSmaller(){
433
+        Integer[] arr1 = {7,20,10,4,5,6,10};
434
+        int expected = 45;
435
+        int actual = arraz.findSmallerAndSecondSmaller(arr1);
436
+        Assert.assertEquals(expected,actual);
437
+    }
438
+
439
+   @Test
440
+    public void test1RemoveLastItemAndCopy(){
441
+       Integer[] arr1 = {1,20,10,4,5,6,10};
442
+       Integer[] expected= {1,20,10,4,5,6};
443
+       Integer [] actual = arraz.removeLastItemAndCopy(arr1);
444
+       Assert.assertTrue(Arrays.equals(expected,actual));
445
+
446
+   }
447
+    @Test
448
+    public void test2RemoveLastItemAndCopy(){
449
+        Integer[] arr1 = {5,6,10};
450
+        Integer[] expected= {5,6};
451
+        Integer [] actual = arraz.removeLastItemAndCopy(arr1);
452
+        Assert.assertTrue(Arrays.equals(expected,actual));
453
+
454
+    }
455
+
456
+
457
+    @Test
458
+    public void test1RemoveFirstItemAndCopy() {
459
+        Integer[] arr1 = {5, 6, 10};
460
+        Integer[] expected = {6, 10};
461
+        Integer[] actual = arraz.removeFirstItemAndCopy(arr1);
462
+        Assert.assertTrue(Arrays.equals(expected, actual));
463
+
464
+    }
465
+    @Test
466
+    public void test2RemoveFirstItemAndCopy() {
467
+        Integer[] arr1 = { 6,10,88,9};
468
+        Integer[] expected = {10,88,9};
469
+        Integer[] actual = arraz.removeFirstItemAndCopy(arr1);
470
+        Assert.assertTrue(Arrays.equals(expected, actual));
471
+
472
+    }
473
+    @Test
474
+    public void test1InsertAtStatAndCopy() {
475
+        Integer [] arr1 = {6,10,88,9};
476
+        Integer num = 2;
477
+        Integer [] expected = {2,6,10,88,9};
478
+        Integer[] actual = arraz.insertAtStartAndCopy(arr1,num);
479
+      Assert.assertEquals(expected, actual);
480
+
481
+    }
482
+    @Test
483
+    public void test2InsertAtStatAndCopy() {
484
+        Integer [] arr1 = {6,10,88,9};
485
+        Integer num = 88;
486
+        Integer [] expected = {88,6,10,88,9};
487
+        Integer[] actual = arraz.insertAtStartAndCopy(arr1,num);
488
+        Assert.assertEquals(expected, actual);
489
+
490
+    }
491
+    @Test
492
+    public void test1InsertAtEndAndCopy() {
493
+        Integer [] arr1 = {6,10,88,9};
494
+        Integer num = 82;
495
+        Integer [] expected = {6,10,88,9,82};
496
+        Integer[] actual = arraz.insertAtEndAndCopy(arr1,num);
497
+        Assert.assertEquals(expected, actual);
498
+
499
+    }
500
+    @Test
501
+    public void test2InsertAtEndAndCopy() {
502
+        Integer [] arr1 = {6,10,88,9};
503
+        Integer num = 3;
504
+        Integer [] expected = {6,10,88,9,3};
505
+        Integer[] actual = arraz.insertAtEndAndCopy(arr1,num);
506
+        Assert.assertEquals(expected, actual);
507
+
508
+    }
509
+    @Test
510
+    public void test1SortArrayIntoEvensThenOdds(){
511
+        Integer [] arr1 = {1,2,3,4,5,6};
512
+        Integer[] expected = {2,4,6,1,3,5};
513
+        Integer[] actual = arraz.sortArrayIntoEvensThenOdds(arr1);
514
+        //System.out.println(Arrays.toString(actual));
515
+        Assert.assertEquals(expected,actual);
516
+    }
517
+    @Test
518
+    public void test2SortArrayIntoEvensThenOdds(){
519
+        Integer [] arr1 = {7,22,33,44,5};
520
+        Integer[] expected = {22,44,5,7,33};
521
+        Integer[] actual = arraz.sortArrayIntoEvensThenOdds(arr1);
522
+        //System.out.println(Arrays.toString(actual));
523
+        Assert.assertEquals(expected,actual);
524
+    }
525
+
526
+
4 527
 
5 528
 }