Soujanya Buragapu 6 年之前
父節點
當前提交
4516c31bc1
共有 9 個文件被更改,包括 1020 次插入232 次删除
  1. 1
    1
      .idea/compiler.xml
  2. 337
    227
      .idea/workspace.xml
  3. 1
    1
      README.md
  4. 1
    1
      arraz/arraz.iml
  5. 12
    0
      arraz/pom.xml
  6. 290
    0
      arraz/src/main/java/Arraz.java
  7. 316
    2
      arraz/src/test/java/ArrazTest.java
  8. 30
    0
      arraz/src/test/java/MaxMin.java
  9. 32
    0
      arraz/src/test/java/OddEven.java

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

+ 337
- 227
.idea/workspace.xml 查看文件

@@ -2,69 +2,146 @@
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$/arraz/src/test/java/MaxMin.java" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/arraz/src/test/java/OddEven.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$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/arraz/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/arraz.iml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/arraz/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/pom.xml" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.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" />
14 20
     <option name="LAST_RESOLUTION" value="IGNORE" />
15 21
   </component>
22
+  <component name="FUSProjectUsageTrigger">
23
+    <session id="676418341">
24
+      <usages-collector id="statistics.lifecycle.project">
25
+        <counts>
26
+          <entry key="project.closed" value="3" />
27
+          <entry key="project.open.time.1" value="2" />
28
+          <entry key="project.open.time.2" value="1" />
29
+          <entry key="project.open.time.3" value="1" />
30
+          <entry key="project.opened" value="4" />
31
+        </counts>
32
+      </usages-collector>
33
+      <usages-collector id="statistics.file.extensions.edit">
34
+        <counts>
35
+          <entry key="java" value="3537" />
36
+          <entry key="md" value="4" />
37
+        </counts>
38
+      </usages-collector>
39
+      <usages-collector id="statistics.file.types.edit">
40
+        <counts>
41
+          <entry key="JAVA" value="3537" />
42
+          <entry key="Markdown" value="4" />
43
+        </counts>
44
+      </usages-collector>
45
+      <usages-collector id="statistics.file.extensions.open">
46
+        <counts>
47
+          <entry key="java" value="2" />
48
+        </counts>
49
+      </usages-collector>
50
+      <usages-collector id="statistics.file.types.open">
51
+        <counts>
52
+          <entry key="JAVA" value="2" />
53
+        </counts>
54
+      </usages-collector>
55
+    </session>
56
+  </component>
16 57
   <component name="FileEditorManager">
17 58
     <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">
59
+      <file pinned="false" current-in-tab="false">
29 60
         <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
30 61
           <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 />
62
+            <state relative-caret-position="-11">
63
+              <caret line="63" column="14" lean-forward="true" selection-start-line="63" selection-start-column="14" selection-end-line="63" selection-end-column="14" />
64
+              <folding>
65
+                <element signature="imports" expanded="true" />
66
+                <element signature="e#2459#2460#0" expanded="true" />
67
+                <element signature="e#2494#2495#0" expanded="true" />
68
+                <element signature="e#4127#4136#0" expanded="true" />
69
+                <element signature="e#5513#5522#0" expanded="true" />
70
+                <element signature="e#6653#6654#0" expanded="true" />
71
+                <element signature="e#6679#6680#0" expanded="true" />
72
+                <element signature="e#8277#8286#0" expanded="true" />
73
+                <element signature="e#8332#8341#0" expanded="true" />
74
+              </folding>
34 75
             </state>
35 76
           </provider>
36 77
         </entry>
37 78
       </file>
38
-      <file leaf-file-name="ArrazTest.java" pinned="false" current-in-tab="false">
79
+      <file pinned="false" current-in-tab="true">
39 80
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
40 81
           <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 />
82
+            <state relative-caret-position="412">
83
+              <caret line="101" column="30" lean-forward="true" selection-start-line="101" selection-start-column="30" selection-end-line="101" selection-end-column="30" />
84
+              <folding>
85
+                <element signature="imports" expanded="true" />
86
+                <element signature="e#4834#4843#0" expanded="true" />
87
+              </folding>
44 88
             </state>
45 89
           </provider>
46 90
         </entry>
47 91
       </file>
48
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
92
+      <file pinned="false" current-in-tab="false">
49 93
         <entry file="file://$PROJECT_DIR$/README.md">
50 94
           <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
51 95
             <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 />
96
+              <first_editor relative-caret-position="326">
97
+                <caret line="36" column="91" selection-start-line="36" selection-start-column="73" selection-end-line="36" selection-end-column="91" />
55 98
               </first_editor>
56 99
               <second_editor />
57 100
             </state>
58 101
           </provider>
59 102
         </entry>
60 103
       </file>
104
+      <file pinned="false" current-in-tab="false">
105
+        <entry file="file://$PROJECT_DIR$/arraz/src/test/java/OddEven.java">
106
+          <provider selected="true" editor-type-id="text-editor">
107
+            <state relative-caret-position="450">
108
+              <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
109
+              <folding>
110
+                <element signature="e#247#248#0" expanded="true" />
111
+                <element signature="e#277#278#0" expanded="true" />
112
+                <element signature="e#528#529#0" expanded="true" />
113
+                <element signature="e#555#556#0" expanded="true" />
114
+                <element signature="e#586#587#0" expanded="true" />
115
+                <element signature="e#612#613#0" expanded="true" />
116
+              </folding>
117
+            </state>
118
+          </provider>
119
+        </entry>
120
+      </file>
121
+      <file pinned="false" current-in-tab="false">
122
+        <entry file="file://$PROJECT_DIR$/arraz/src/test/java/MaxMin.java">
123
+          <provider selected="true" editor-type-id="text-editor">
124
+            <state relative-caret-position="450">
125
+              <caret line="30" lean-forward="true" selection-start-line="30" selection-end-line="30" />
126
+              <folding>
127
+                <element signature="e#113#114#0" expanded="true" />
128
+                <element signature="e#141#142#0" expanded="true" />
129
+                <element signature="e#404#405#0" expanded="true" />
130
+                <element signature="e#430#431#0" expanded="true" />
131
+                <element signature="e#461#462#0" expanded="true" />
132
+                <element signature="e#487#488#0" expanded="true" />
133
+              </folding>
134
+            </state>
135
+          </provider>
136
+        </entry>
137
+      </file>
61 138
     </leaf>
62 139
   </component>
63 140
   <component name="FileTemplateManagerImpl">
64 141
     <option name="RECENT_TEMPLATES">
65 142
       <list>
66
-        <option value="Class" />
67 143
         <option value="JUnit4 Test Class" />
144
+        <option value="Class" />
68 145
       </list>
69 146
     </option>
70 147
   </component>
@@ -72,9 +149,6 @@
72 149
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73 150
   </component>
74 151
   <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78 152
     <option name="projectSyncType">
79 153
       <map>
80 154
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
@@ -84,8 +158,11 @@
84 158
   <component name="IdeDocumentHistory">
85 159
     <option name="CHANGED_PATHS">
86 160
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88 161
         <option value="$PROJECT_DIR$/README.md" />
162
+        <option value="$PROJECT_DIR$/arraz/src/test/java/OddEven.java" />
163
+        <option value="$PROJECT_DIR$/arraz/src/test/java/MaxMin.java" />
164
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
165
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
89 166
       </list>
90 167
     </option>
91 168
   </component>
@@ -102,27 +179,17 @@
102 179
       </MavenImportingSettings>
103 180
     </option>
104 181
   </component>
105
-  <component name="ProjectFrameBounds">
106
-    <option name="x" value="242" />
107
-    <option name="y" value="45" />
108
-    <option name="width" value="1538" />
109
-    <option name="height" value="962" />
182
+  <component name="ProjectFrameBounds" fullScreen="true">
183
+    <option name="y" value="23" />
184
+    <option name="width" value="1280" />
185
+    <option name="height" value="723" />
110 186
   </component>
111 187
   <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 />
188
+    <navigator proportions="" version="1">
123 189
       <foldersAlwaysOnTop value="true" />
124 190
     </navigator>
125 191
     <panes>
192
+      <pane id="PackagesPane" />
126 193
       <pane id="ProjectPane">
127 194
         <subPane>
128 195
           <expand>
@@ -151,27 +218,48 @@
151 218
             <path>
152 219
               <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
153 220
               <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
221
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
222
+              <item name="src" type="462c0819:PsiDirectoryNode" />
223
+              <item name="main" type="462c0819:PsiDirectoryNode" />
224
+              <item name="java" type="462c0819:PsiDirectoryNode" />
225
+            </path>
226
+            <path>
227
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
228
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
229
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
230
+              <item name="src" type="462c0819:PsiDirectoryNode" />
231
+              <item name="test" type="462c0819:PsiDirectoryNode" />
232
+            </path>
233
+            <path>
234
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
235
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
236
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
237
+              <item name="src" type="462c0819:PsiDirectoryNode" />
238
+              <item name="test" type="462c0819:PsiDirectoryNode" />
239
+              <item name="java" type="462c0819:PsiDirectoryNode" />
240
+            </path>
241
+            <path>
242
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
243
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
154 244
               <item name="DocumentationOnArrays" type="462c0819:PsiDirectoryNode" />
155 245
             </path>
156 246
           </expand>
157 247
           <select />
158 248
         </subPane>
159 249
       </pane>
160
-      <pane id="Scratches" />
161
-      <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163 250
       <pane id="Scope" />
164 251
     </panes>
165 252
   </component>
166 253
   <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" />
254
+    <property name="GO_FMT" value="false" />
169 255
     <property name="WebServerToolWindowFactoryState" value="false" />
170 256
     <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" />
257
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544336587206" />
173 258
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
259
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
260
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
261
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
262
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
175 263
   </component>
176 264
   <component name="RecentsManager">
177 265
     <key name="CreateTestDialog.RecentsKey">
@@ -193,90 +281,111 @@
193 281
       </list>
194 282
     </option>
195 283
   </component>
196
-  <component name="RunManager">
284
+  <component name="RunManager" selected="JUnit.ArrazTest">
197 285
     <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
200 286
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
287
+      <method v="2">
288
+        <option name="Make" enabled="true" />
289
+      </method>
202 290
     </configuration>
203 291
     <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 292
       <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 />
293
+      <method v="2">
294
+        <option name="Make" enabled="true" />
295
+      </method>
216 296
     </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" />
297
+    <configuration name="ArrazTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
298
+      <module name="arraz" />
299
+      <option name="PACKAGE_NAME" value="" />
300
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
301
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
302
+      <method v="2">
303
+        <option name="Make" enabled="true" />
304
+      </method>
305
+    </configuration>
306
+    <configuration name="ArrazTest.copyArrayByIteratorTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
307
+      <module name="arraz" />
308
+      <option name="PACKAGE_NAME" value="" />
309
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
310
+      <option name="METHOD_NAME" value="copyArrayByIteratorTest" />
311
+      <option name="TEST_OBJECT" value="method" />
312
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
313
+      <method v="2">
314
+        <option name="Make" enabled="true" />
315
+      </method>
316
+    </configuration>
317
+    <configuration name="ArrazTest.removeDupesFromArrayTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
318
+      <module name="arraz" />
319
+      <option name="PACKAGE_NAME" value="" />
320
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
321
+      <option name="METHOD_NAME" value="removeDupesFromArrayTest" />
322
+      <option name="TEST_OBJECT" value="method" />
323
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
324
+      <method v="2">
325
+        <option name="Make" enabled="true" />
326
+      </method>
327
+    </configuration>
328
+    <configuration name="ArrazTest.removeLastItemAndCopyTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
329
+      <module name="arraz" />
330
+      <option name="PACKAGE_NAME" value="" />
331
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
332
+      <option name="METHOD_NAME" value="removeLastItemAndCopyTest" />
333
+      <option name="TEST_OBJECT" value="method" />
228 334
       <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 />
335
+      <method v="2">
336
+        <option name="Make" enabled="true" />
337
+      </method>
236 338
     </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" />
339
+    <configuration name="ArrazTest.theTotalofTensIs30Test" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
340
+      <module name="arraz" />
341
+      <option name="PACKAGE_NAME" value="" />
342
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
343
+      <option name="METHOD_NAME" value="theTotalofTensIs30Test" />
344
+      <option name="TEST_OBJECT" value="method" />
345
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
346
+      <method v="2">
347
+        <option name="Make" enabled="true" />
348
+      </method>
349
+    </configuration>
350
+    <configuration default="true" type="JUnit" factoryName="JUnit">
351
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
352
+      <method v="2">
353
+        <option name="Make" enabled="true" />
354
+      </method>
243 355
     </configuration>
244 356
     <configuration default="true" type="TestNG" factoryName="TestNG">
245
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
246
-      <module name="" />
247
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
248
-      <option name="ALTERNATIVE_JRE_PATH" />
249
-      <option name="SUITE_NAME" />
250
-      <option name="PACKAGE_NAME" />
251
-      <option name="MAIN_CLASS_NAME" />
252
-      <option name="METHOD_NAME" />
253
-      <option name="GROUP_NAME" />
254
-      <option name="TEST_OBJECT" value="CLASS" />
255
-      <option name="VM_PARAMETERS" value="-ea" />
256
-      <option name="PARAMETERS" />
257 357
       <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 358
       <properties />
269 359
       <listeners />
360
+      <method v="2">
361
+        <option name="Make" enabled="true" />
362
+      </method>
270 363
     </configuration>
271 364
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
272 365
       <module name="" />
273 366
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274 367
       <option name="PROGRAM_PARAMETERS" />
275 368
       <predefined_log_file id="idea.log" enabled="true" />
369
+      <method v="2">
370
+        <option name="Make" enabled="true" />
371
+      </method>
276 372
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
373
+    <list>
374
+      <item itemvalue="JUnit.ArrazTest.removeDupesFromArrayTest" />
375
+      <item itemvalue="JUnit.ArrazTest" />
376
+      <item itemvalue="JUnit.ArrazTest.removeLastItemAndCopyTest" />
377
+      <item itemvalue="JUnit.ArrazTest.theTotalofTensIs30Test" />
378
+      <item itemvalue="JUnit.ArrazTest.copyArrayByIteratorTest" />
379
+    </list>
380
+    <recent_temporary>
381
+      <list>
382
+        <item itemvalue="JUnit.ArrazTest" />
383
+        <item itemvalue="JUnit.ArrazTest.copyArrayByIteratorTest" />
384
+        <item itemvalue="JUnit.ArrazTest.theTotalofTensIs30Test" />
385
+        <item itemvalue="JUnit.ArrazTest.removeLastItemAndCopyTest" />
386
+        <item itemvalue="JUnit.ArrazTest.removeDupesFromArrayTest" />
387
+      </list>
388
+    </recent_temporary>
280 389
   </component>
281 390
   <component name="SvnConfiguration">
282 391
     <configuration />
@@ -291,6 +400,10 @@
291 400
       <workItem from="1543955862749" duration="2347000" />
292 401
       <workItem from="1543958998826" duration="113000" />
293 402
       <workItem from="1544020724645" duration="762000" />
403
+      <workItem from="1544025146191" duration="1556000" />
404
+      <workItem from="1544197954474" duration="724000" />
405
+      <workItem from="1544210486435" duration="546000" />
406
+      <workItem from="1544290119683" duration="16950000" />
294 407
     </task>
295 408
     <task id="LOCAL-00001" summary="readme and docs">
296 409
       <created>1544021313039</created>
@@ -302,39 +415,73 @@
302 415
     <option name="localTasksCounter" value="2" />
303 416
     <servers />
304 417
   </component>
418
+  <component name="TestHistory">
419
+    <history-entry file="ArrazTest_insertAtStartAndCopy - 2018.12.09 at 00h 55m 33s.xml">
420
+      <configuration name="ArrazTest.insertAtStartAndCopy" configurationId="JUnit" />
421
+    </history-entry>
422
+    <history-entry file="ArrazTest_insertAtEndAndCopyTest - 2018.12.09 at 00h 56m 09s.xml">
423
+      <configuration name="ArrazTest.insertAtEndAndCopyTest" configurationId="JUnit" />
424
+    </history-entry>
425
+    <history-entry file="ArrazTest_insertIntoArrayAtTest - 2018.12.09 at 00h 56m 51s.xml">
426
+      <configuration name="ArrazTest.insertIntoArrayAtTest" configurationId="JUnit" />
427
+    </history-entry>
428
+    <history-entry file="ArrazTest_removeDupesFromArrayTest - 2018.12.09 at 00h 57m 22s.xml">
429
+      <configuration name="ArrazTest.removeDupesFromArrayTest" configurationId="JUnit" />
430
+    </history-entry>
431
+    <history-entry file="ArrazTest - 2018.12.09 at 00h 57m 28s.xml">
432
+      <configuration name="ArrazTest" configurationId="JUnit" />
433
+    </history-entry>
434
+    <history-entry file="ArrazTest_removeLastItemAndCopyTest - 2018.12.09 at 01h 00m 05s.xml">
435
+      <configuration name="ArrazTest.removeLastItemAndCopyTest" configurationId="JUnit" />
436
+    </history-entry>
437
+    <history-entry file="ArrazTest_theTotalofTensIs30Test - 2018.12.09 at 01h 06m 16s.xml">
438
+      <configuration name="ArrazTest.theTotalofTensIs30Test" configurationId="JUnit" />
439
+    </history-entry>
440
+    <history-entry file="ArrazTest_theTotalofTensIs30Test - 2018.12.09 at 01h 06m 41s.xml">
441
+      <configuration name="ArrazTest.theTotalofTensIs30Test" configurationId="JUnit" />
442
+    </history-entry>
443
+    <history-entry file="ArrazTest - 2018.12.09 at 01h 06m 51s.xml">
444
+      <configuration name="ArrazTest" configurationId="JUnit" />
445
+    </history-entry>
446
+    <history-entry file="ArrazTest - 2018.12.09 at 01h 17m 01s.xml">
447
+      <configuration name="ArrazTest" configurationId="JUnit" />
448
+    </history-entry>
449
+  </component>
305 450
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
451
+    <option name="totallyTimeSpent" value="22998000" />
307 452
   </component>
308 453
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
454
+    <frame x="0" y="0" width="1280" height="800" extended-state="0" />
310 455
     <editor active="true" />
311 456
     <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" />
457
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.1987076" />
458
+      <window_info id="Structure" order="1" weight="0.25" />
459
+      <window_info id="Image Layers" order="2" />
460
+      <window_info id="Designer" order="3" />
461
+      <window_info id="UI Designer" order="4" />
462
+      <window_info id="Capture Tool" order="5" />
463
+      <window_info id="Favorites" order="6" side_tool="true" />
464
+      <window_info anchor="bottom" id="Message" order="0" />
465
+      <window_info anchor="bottom" id="Find" order="1" />
466
+      <window_info anchor="bottom" id="Run" order="2" weight="0.33013698" />
467
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
468
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
469
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
470
+      <window_info anchor="bottom" id="TODO" order="6" />
471
+      <window_info anchor="bottom" id="Terminal" order="7" />
472
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
473
+      <window_info anchor="bottom" id="Version Control" order="9" />
474
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
475
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.3280507" />
476
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
477
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
478
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
479
+      <window_info anchor="right" id="Palette" order="3" />
480
+      <window_info anchor="right" id="Capture Analysis" order="4" />
481
+      <window_info anchor="right" id="Theme Preview" order="5" />
482
+      <window_info anchor="right" id="Database" order="6" />
483
+      <window_info anchor="right" id="Palette&#9;" order="7" />
484
+      <window_info anchor="right" id="Maven Projects" order="8" />
338 485
     </layout>
339 486
   </component>
340 487
   <component name="TypeScriptGeneratedFilesManager">
@@ -347,113 +494,76 @@
347 494
     <MESSAGE value="readme and docs" />
348 495
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349 496
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354 497
   <component name="editorHistoryManager">
355 498
     <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>
499
+      <provider selected="true" editor-type-id="text-editor" />
370 500
     </entry>
371
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
501
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/MaxMin.java">
372 502
       <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 />
503
+        <state relative-caret-position="450">
504
+          <caret line="30" lean-forward="true" selection-start-line="30" selection-end-line="30" />
505
+          <folding>
506
+            <element signature="e#113#114#0" expanded="true" />
507
+            <element signature="e#141#142#0" expanded="true" />
508
+            <element signature="e#404#405#0" expanded="true" />
509
+            <element signature="e#430#431#0" expanded="true" />
510
+            <element signature="e#461#462#0" expanded="true" />
511
+            <element signature="e#487#488#0" expanded="true" />
512
+          </folding>
376 513
         </state>
377 514
       </provider>
378 515
     </entry>
379 516
     <entry file="file://$PROJECT_DIR$/README.md">
380 517
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
381 518
         <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 />
519
+          <first_editor relative-caret-position="326">
520
+            <caret line="36" column="91" selection-start-line="36" selection-start-column="73" selection-end-line="36" selection-end-column="91" />
385 521
           </first_editor>
386 522
           <second_editor />
387 523
         </state>
388 524
       </provider>
389 525
     </entry>
390
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
526
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/OddEven.java">
391 527
       <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 />
528
+        <state relative-caret-position="450">
529
+          <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
530
+          <folding>
531
+            <element signature="e#247#248#0" expanded="true" />
532
+            <element signature="e#277#278#0" expanded="true" />
533
+            <element signature="e#528#529#0" expanded="true" />
534
+            <element signature="e#555#556#0" expanded="true" />
535
+            <element signature="e#586#587#0" expanded="true" />
536
+            <element signature="e#612#613#0" expanded="true" />
537
+          </folding>
395 538
         </state>
396 539
       </provider>
397 540
     </entry>
398 541
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
399 542
       <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 />
543
+        <state relative-caret-position="-11">
544
+          <caret line="63" column="14" lean-forward="true" selection-start-line="63" selection-start-column="14" selection-end-line="63" selection-end-column="14" />
545
+          <folding>
546
+            <element signature="imports" expanded="true" />
547
+            <element signature="e#2459#2460#0" expanded="true" />
548
+            <element signature="e#2494#2495#0" expanded="true" />
549
+            <element signature="e#4127#4136#0" expanded="true" />
550
+            <element signature="e#5513#5522#0" expanded="true" />
551
+            <element signature="e#6653#6654#0" expanded="true" />
552
+            <element signature="e#6679#6680#0" expanded="true" />
553
+            <element signature="e#8277#8286#0" expanded="true" />
554
+            <element signature="e#8332#8341#0" expanded="true" />
555
+          </folding>
403 556
         </state>
404 557
       </provider>
405 558
     </entry>
406 559
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
407 560
       <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 />
411
-        </state>
412
-      </provider>
413
-    </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 />
422
-        </state>
423
-      </provider>
424
-    </entry>
425
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
426
-      <provider selected="true" editor-type-id="text-editor">
427
-        <state relative-caret-position="0">
428
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
429
-          <folding />
430
-        </state>
431
-      </provider>
432
-    </entry>
433
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
434
-      <provider selected="true" editor-type-id="text-editor">
435
-        <state relative-caret-position="0">
436
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
437
-          <folding />
438
-        </state>
439
-      </provider>
440
-    </entry>
441
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
442
-      <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 />
561
+        <state relative-caret-position="412">
562
+          <caret line="101" column="30" lean-forward="true" selection-start-line="101" selection-start-column="30" selection-end-line="101" selection-end-column="30" />
563
+          <folding>
564
+            <element signature="imports" expanded="true" />
565
+            <element signature="e#4834#4843#0" expanded="true" />
566
+          </folding>
457 567
         </state>
458 568
       </provider>
459 569
     </entry>

+ 1
- 1
README.md 查看文件

@@ -44,7 +44,7 @@ public class OddEven{
44 44
 
45 45
 * find the index of an array element, pass both array and value as arguments `findIndexOf`
46 46
 * copy an array by iterating the array `copyArrayByInterator`
47
-* copy an array by looping thru the array `copyArrayByLoop`
47
+* copy an array by looping through the array `copyArrayByLoop`
48 48
 * remove a specific element from an array `removeElementFromArray`
49 49
 * insert an element into an array a specific position `insertIntoArrayAt`
50 50
 * find the maximum and minimum value of an array `findMaxMinOfArray` return a 

+ 1
- 1
arraz/arraz.iml 查看文件

@@ -1,6 +1,6 @@
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$">

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

+ 290
- 0
arraz/src/main/java/Arraz.java 查看文件

@@ -1,2 +1,292 @@
1
+import java.util.ArrayList;
2
+import java.util.Arrays;
3
+import java.util.Iterator;
4
+import java.util.List;
5
+
1 6
 public class Arraz {
7
+    //sum values of an array of integers `sumValuesOfArray`
8
+    public static Integer sumValuesOfArray(Integer[] integerArray) {
9
+        Integer sum = 0;
10
+        for (Integer i : integerArray) {
11
+            sum = sum + i;
12
+        }
13
+        return sum;
14
+    }
15
+
16
+    //sum values of an array of doubles `sumDoublesOfArray`
17
+    public static Double sumDoublesOfArray(Double[] doubleArray) {
18
+        double sum = 0;
19
+        for (double i : doubleArray) {
20
+            sum = sum + i;
21
+        }
22
+        return sum;
23
+    }
24
+
25
+    //calculate the average value of an integer array - return an integer `averageOfArray`
26
+    public static Integer averageOfArray(Integer[] integerArray) {
27
+        Integer sum = 0;
28
+        Integer average = 0;
29
+        for (int i = 0; i < integerArray.length; i++) {
30
+            sum = sum + integerArray[i];
31
+            average = sum / integerArray.length;
32
+
33
+        }
34
+        return average;
35
+    }
36
+
37
+    //calculate the average value of an double array - return an double `doubleAverageOfArray`
38
+    public static Double doubleAverageOfArray(Double[] doubleArray) {
39
+        Double sum = 0.0;
40
+        Double average = 0.0;
41
+        for (int i = 0; i < doubleArray.length; i++) {
42
+            sum = sum + doubleArray[i];
43
+            average = sum / doubleArray.length;
44
+
45
+        }
46
+        return average;
47
+    }
48
+
49
+    //to test if an integer array contains a specific value, pass both array and value as arguments `containsValue`
50
+    public static boolean containsValue(Integer[] array, Integer value) {
51
+        for (Integer i : array) {
52
+            if (value == i) {
53
+                return true;
54
+            }
55
+        }
56
+        return false;
57
+    }
58
+
59
+    //reverse an array of integer values `reverseArray`
60
+    public static Integer[] reverseArray(Integer[] integerArray) {
61
+
62
+        Integer[] i = new Integer[integerArray.length];
63
+        int count = (integerArray.length) - 1;
64
+        for (Integer s : integerArray) {
65
+            i[count] = s;
66
+            count--;
67
+        }
68
+        return i;
69
+
70
+    }
71
+
72
+    //find the index of an array element, pass both array and value as arguments `findIndexOf`
73
+    public static Integer findIndexOf(Integer[] array, Integer value) {
74
+        return array[value];
75
+    }
76
+    //copy an array by iterating the array `copyArrayByIterator`
77
+
78
+    public static Integer[] copyArrayByIterator(Integer[] array) {
79
+        Integer[] newArray = new Integer[array.length];
80
+        Iterator<Integer> iterator = Arrays.asList(array).iterator();
81
+        int counter =0;
82
+        while(iterator.hasNext()){
83
+            newArray[counter] = iterator.next();
84
+            counter++;
85
+        }
86
+
87
+        return newArray;
88
+    }
89
+
90
+
91
+    //copy an array by looping through the array `copyArrayByLoop`
92
+    public static Integer[] copyArrayByLoop(Integer[] integerArray) {
93
+        Integer[] tempArray;
94
+        tempArray = new Integer[integerArray.length];
95
+        for (Integer i = 0; i < integerArray.length; i++) {
96
+            tempArray[i] = integerArray[i];
97
+        }
98
+        return tempArray;
99
+    }
100
+
101
+    //remove a specific element from an array `removeElementFromArray`
102
+
103
+    public static Integer[] removeElementFromArray(Integer[] integerArray, Integer valueToRemove) {
104
+
105
+        for (int i = valueToRemove; i < integerArray.length - 1; i++) {
106
+            integerArray[i] = integerArray[i + 1];
107
+        }
108
+        return integerArray;
109
+    }
110
+
111
+    //insert an element into an array a specific position `insertIntoArrayAt`
112
+    public static Integer[] insertIntoArrayAt(Integer[] integerArray, int indexToInsertAt, Integer valueToBeInserted) {
113
+        Integer[] result = new Integer[integerArray.length];
114
+        for (int i = 0; i < indexToInsertAt; i++)
115
+            result[i] = integerArray[i];
116
+        result[indexToInsertAt] = valueToBeInserted;
117
+        for (int i = indexToInsertAt + 1; i < integerArray.length; i++)
118
+            result[i] = integerArray[i - 1];
119
+        return result;
120
+    }
121
+
122
+    //remove duplicate elements from an array, return new array `removeDupesFromArray` (make it an array of Integers)
123
+
124
+    public static Integer[] removeDupesFromArray(Integer[] array) {
125
+        ArrayList<Integer> remove = new ArrayList<Integer>();
126
+        remove.add(array[0]);
127
+        for (Integer i = 1; i < array.length; i++) {
128
+            if (!array[i - 1].equals(array[i])) {
129
+                remove.add(array[i]);
130
+            }
131
+        }
132
+        Integer[] newArray = new Integer[remove.size()];
133
+        newArray = remove.toArray(new Integer[remove.size()]);
134
+
135
+        return newArray;
136
+    }
137
+
138
+    //find the second largest element in an array of Doubles `find2ndLargestValueFromArray`
139
+    public static Integer find2ndLargestValueFromArray(Integer[] array) {
140
+        Integer firstLargest, secondLargest;
141
+        // checking first 2 elements
142
+        if (array[0] > array[1]) {
143
+            firstLargest = array[0];
144
+            secondLargest = array[1];
145
+        } else {
146
+            firstLargest = array[1];
147
+            secondLargest = array[0];
148
+        }
149
+        for (Integer i = 2; i < array.length; i++) {
150
+            if (array[i] > firstLargest) {
151
+                secondLargest = firstLargest;
152
+                firstLargest = array[i];
153
+            } else if (array[i] < firstLargest && array[i] > secondLargest) {
154
+                secondLargest = array[i];
155
+            }
156
+        }
157
+
158
+        return secondLargest;
159
+    }
160
+
161
+    //convert an array to ArrayList `makeMeAnArrayListFromArray`
162
+
163
+    public static Integer[] makeMeAnArrayListFromArray(Integer[] array) {
164
+        List<Integer> list = new ArrayList<Integer>();
165
+        for (Integer i : array) {
166
+            list.add(Integer.valueOf(i));
167
+        }
168
+        return array;
169
+    }
170
+
171
+    //convert an ArrayList to an array `makeMeAnArrayFromArrayList`
172
+
173
+    public static Integer[] makeMeAnArrayFromArrayList(ArrayList<Integer> values) {
174
+        Integer[] tempArray = new Integer[values.size()];
175
+        for (int i = 0; i < tempArray.length; i++) {
176
+            tempArray[i] = values.get(i).intValue();
177
+
178
+        }
179
+        return tempArray;
180
+    }
181
+
182
+    // test the equality of two arrays `check2ArraysForEqual`
183
+
184
+    public static boolean check2ArraysForEqual(Integer[] array1, Integer[] array2) {
185
+        if (Arrays.equals(array1, array2)) {
186
+            return true;
187
+        }
188
+        return false;
189
+    }
190
+
191
+    // compute the average value of an array of integers except the largest and smallest values (be thinking of code re-use for this one) `averageArrayWithoutMaxMin`
192
+
193
+    //check if an array of integers contains two specified elements: 65 and 77, returns a boolean `arrayHas65and77`
194
+    public static boolean arrayHas65and77(Integer[] array) {
195
+        return false;
196
+    }
197
+
198
+    // check if the sum of all the 10's in the array is exactly 30. Return false if the condition does not satisfy, otherwise true. `theTotalofTensIs30`
199
+
200
+    public static boolean theTotalofTensIs30(Integer[] array) {
201
+        Integer totalOfTens = 0;
202
+        for(Integer i : array){
203
+            if(i == 10)
204
+                totalOfTens += i;
205
+        }
206
+
207
+        if(totalOfTens == 30)
208
+        {
209
+            return true;
210
+        }
211
+        else
212
+        {
213
+            return false;
214
+        }
215
+    }
216
+
217
+    //find smallest and second smallest elements of a given array
218
+
219
+
220
+    // copy an array of integers, reverse it, and return it. `makeMeACopyPlease`
221
+
222
+
223
+    // remove the last element from an array of integers, return a copy `removeLastItemAndCopy`
224
+
225
+    public static Integer[] removeLastItemAndCopy(Integer[] array) {
226
+        Integer[] newArray = new Integer[array.length-1];
227
+        for(Integer i = 0; i < array.length-1; i++){
228
+            newArray[i] = array[i];
229
+        }
230
+        return newArray;
231
+    }
232
+
233
+    // remove the first element from an array of integers, return a copy `removeFirstItemAndCopy`
234
+
235
+    public static Integer[] removeFirstItemAndCopy(Integer[] array) {
236
+        Integer[] newArray = new Integer[array.length-1];
237
+
238
+        for(int i = 1; i < array.length; i++){
239
+            newArray[i-1] = array[i];
240
+        }
241
+        return newArray;
242
+    }
243
+
244
+    // insert a new element at the start of an array, return a copy `insertAtStartAndCopy`
245
+    public static Integer[] insertAtStartAndCopy(Integer[] array, Integer value) {
246
+        Integer[] newArray = new Integer[array.length + 1];
247
+        for (Integer i = 0; i < array.length; i++) {
248
+            newArray[i] = array[i];
249
+        }
250
+        newArray[newArray.length - 1] = value;
251
+        array = newArray;
252
+        return array;
253
+    }
254
+
255
+    // insert a new element at the end of an array, return a copy `insertAtEndAndCopy`
256
+
257
+    public static Integer[] insertAtEndAndCopy(Integer[] array, Integer valueToBeInserted)
258
+    {
259
+        Integer[] newArray = new Integer[array.length+1];
260
+        newArray[newArray.length-1] = valueToBeInserted;
261
+        for(Integer i = 0; i<array.length; i++){
262
+            newArray[i] = array[i];
263
+        }
264
+        return newArray;
265
+    }
266
+
267
+    // separate even and odd numbers of an given array of integers. Put all even numbers first, and then odd numbers `sortArrayIntoEvensThenOdds`
268
+
269
+    public static Integer[] sortArrayIntoEvensThenOdds(Integer[] array) {
270
+
271
+        Arrays.sort(array);
272
+        Integer[] newArray = new Integer[array.length];
273
+        List<Integer> evenElement = new ArrayList<Integer>();
274
+        List<Integer> oddElements = new ArrayList<Integer>();
275
+        for (Integer i = 0; i < array.length; i++) {
276
+            if (array[i] % 2 == 0)
277
+                evenElement.add(array[i]);
278
+            else
279
+                oddElements.add(array[i]);
280
+        }
281
+
282
+        evenElement.addAll(oddElements);
283
+        for (int i = 0; i < array.length; i++) {
284
+            newArray[i] = evenElement.get(i);
285
+        }
286
+
287
+        return newArray;
288
+    }
2 289
 }
290
+
291
+
292
+

+ 316
- 2
arraz/src/test/java/ArrazTest.java 查看文件

@@ -1,5 +1,319 @@
1
-import static org.junit.Assert.*;
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+import java.util.ArrayList;
2 5
 
3 6
 public class ArrazTest {
7
+    @Test
8
+    public void test1sumValuesOfArray() {
9
+        // : Given
10
+        Integer[] input = {4, 5, 102, 6, -7, 12, -32, 92, 8};
11
+        Integer expected = 190;
12
+
13
+        // : When
14
+        Integer actual = Arraz.sumValuesOfArray(input);
15
+
16
+        // : Then
17
+        Assert.assertEquals(expected, actual);
18
+    }
19
+
20
+    @Test
21
+    public void test2sumValuesOfArray() {
22
+        // : Given
23
+        Double[] input = {1.0, 0.5, 3.6, 38.4, 17.3, 62.0, 9.0, 3.375, 0.0, 3.14159};
24
+        Double expected = 138.31659000000002;
25
+
26
+        // : When
27
+        Double actual = Arraz.sumDoublesOfArray(input);
28
+
29
+        // : Then
30
+        Assert.assertEquals(expected, actual);
31
+    }
32
+
33
+    @Test
34
+    public void averageOfArrayTest() {
35
+        // : Given
36
+        Integer[] input = {4, 5, 102, 6, -7, 12, -32, 92, 8};
37
+        Integer expected = 21;
38
+
39
+        // : When
40
+        Integer actual = Arraz.averageOfArray(input);
41
+
42
+        // : Then
43
+        Assert.assertEquals(expected, actual, 0.01);
44
+    }
45
+
46
+    @Test
47
+    public void doubleAverageOfArrayTest() {
48
+        // : Given
49
+        Double[] input = {1.0, 0.5, 3.6, 38.4, 17.3, 62.0, 9.0, 3.375, 0.0, 3.14159};
50
+        Double expected = 13.831659000000002;
51
+
52
+        // : When
53
+        Double actual = Arraz.doubleAverageOfArray(input);
54
+
55
+        // : Then
56
+        Assert.assertEquals(expected, actual, 0.01);
57
+    }
58
+
59
+    @Test
60
+    public void containsValueTest() {
61
+        // : Given
62
+        Integer[] array = {4, 5, 102, 6, -7, 12, -32, 92, 8};
63
+
64
+        // : When
65
+        for (Integer i : array) {
66
+            boolean outcome = Arraz.containsValue(array, i);
67
+
68
+            // : Then
69
+            Assert.assertTrue(outcome);
70
+        }
71
+    }
72
+
73
+    @Test
74
+    public void reverseArrayTest() {
75
+        // : Given
76
+        Integer[] array = {4, 5, 102, 6, -7, 12, -32, 92, 8};
77
+        Integer[] expected = {8, 92, -32, 12, -7, 6, 102, 5, 4};
78
+        // : When
79
+        Integer[] actual = Arraz.reverseArray(array);
80
+        // : Then
81
+        Assert.assertEquals(expected, actual);
82
+    }
83
+
84
+
85
+    @Test
86
+    public void findIndexOfTest() {
87
+        // : Given
88
+        Integer index = 2;
89
+        Integer[] input = {4, 5, 102, 6, -7, 12, -32, 92, 8};
90
+        Integer expected = 102;
91
+
92
+        // : When
93
+        Integer actual = Arraz.findIndexOf(input, index);
94
+
95
+        // : Then
96
+        Assert.assertEquals(expected, actual);
97
+    }
98
+    @Test
99
+    public void copyArrayByIteratorTest() {
100
+        // : Given
101
+        Integer[] givenArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
102
+        Integer[] expectedArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
103
+
104
+        // : When
105
+        Integer[] actual = Arraz.copyArrayByIterator(givenArray);
106
+
107
+        // : Then
108
+        Assert.assertEquals(expectedArray, actual);
109
+    }
110
+
111
+    @Test
112
+    public void copyArrayByLoopTest() {
113
+        // : Given
114
+        Integer[] givenArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
115
+        Integer[] expectedArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
116
+
117
+        // : When
118
+        Integer[] actual = Arraz.copyArrayByLoop(givenArray);
119
+
120
+        // : Then
121
+        Assert.assertEquals(expectedArray, actual);
122
+    }
123
+
124
+    @Test
125
+    public void removeElementFromArrayTest() {
126
+        Integer[] givenArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
127
+        Integer[] expected = {4, 5, 102, 6, -7, 12, -32, 92};
128
+        Integer[] actual = Arraz.removeElementFromArray(givenArray, 8);
129
+    }
130
+
131
+    @Test
132
+    public void insertIntoArrayAtTest() {
133
+        // : Given
134
+        Integer indexToInsertAt = 0;
135
+        Integer valueToBeInserted = 8;
136
+        Integer[] inputArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
137
+        //Integer[] expected = {4, 5, 102, 6, -7, 12, -32, 92, 8};
138
+
139
+        // : When
140
+        Integer[] actual = Arraz.insertIntoArrayAt(inputArray, indexToInsertAt, valueToBeInserted);
141
+
142
+        // : Then
143
+        Assert.assertNotNull(actual);
144
+    }
145
+
146
+    @Test
147
+    public void removeDupesFromArrayTest() {
148
+        // : Given
149
+        Integer[] givenArray = {4, 5, 4, 102, 6, -7, 12, -32, 92, 8, -32};
150
+        //Integer[] expected = {4, 5, 102, 6, -7, 12, -32, 92, 8};
151
+
152
+        // : When
153
+        Integer[] actual = Arraz.removeDupesFromArray(givenArray);
154
+
155
+        // : Then
156
+        Assert.assertNotNull(actual);
157
+
158
+    }
159
+
160
+    @Test
161
+    public void find2ndLargestValueFromArrayTest() {
162
+        // : Given
163
+        Integer[] givenArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
164
+        Integer expected = 92;
165
+
166
+        // : When
167
+        Integer actual = Arraz.find2ndLargestValueFromArray(givenArray);
168
+
169
+        // : Then
170
+        Assert.assertEquals(expected, actual);
171
+    }
172
+
173
+    @Test
174
+
175
+    public void makeMeAnArrayListFromArrayTest() {
176
+        // : Given
177
+        Integer[] givenArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
178
+        Integer[] expected = {4, 5, 102, 6, -7, 12, -32, 92, 8};
179
+
180
+        // : When
181
+        Integer[] actual = Arraz.makeMeAnArrayListFromArray(givenArray);
182
+
183
+        // : Then
184
+        Assert.assertEquals(expected, actual);
185
+    }
186
+
187
+    @Test
188
+
189
+    public void makeMeAnArrayFromArrayListTest() {
190
+        // : Given
191
+        ArrayList<Integer> list = new ArrayList<Integer>();
192
+        list.add(4);
193
+        list.add(5);
194
+        list.add(8);
195
+
196
+        Integer[] expected = {4,5,8};
197
+
198
+        // : When
199
+        Integer[] actual = Arraz.makeMeAnArrayFromArrayList(list);
200
+
201
+        // : Then
202
+        Assert.assertEquals(expected, actual);
203
+    }
204
+
205
+    @Test
206
+    public void check2ArraysForEqualTest() {
207
+        // : Given
208
+        Integer[] array1 = {4, 5, 102, 6, -7, 12, -32, 92, 8};
209
+        Integer[] array2 = {4, 5, 102, 6, -7, 12, -32, 92, 8};
210
+
211
+        // : When
212
+        boolean actual = Arraz.check2ArraysForEqual(array1,array2);
213
+
214
+        // : Then
215
+        Assert.assertTrue( actual);
216
+    }
217
+
218
+    @Test
219
+    public  void theTotalofTensIs30Test()
220
+    {
221
+        // : Given
222
+        Integer[] array1 = {4, 5, 102, 6, -7, 12, -32, 92, 8};
223
+
224
+        // : When
225
+        Boolean outcome = Arraz.theTotalofTensIs30(array1);
226
+
227
+        // : Then
228
+        Assert.assertFalse(outcome);
229
+    }
230
+    @Test
231
+    public void removeFirstItemAndCopyTest()
232
+    {
233
+        // : Given
234
+        Integer[] array1 = {4, 5, 102, 6, -7, 12, -32, 92, 8};
235
+
236
+        // : When
237
+        Integer[] actual = Arraz.removeFirstItemAndCopy(array1);
238
+
239
+        // : Then
240
+        Assert.assertNotNull(actual);
241
+    }
242
+
243
+    @Test
244
+    public void removeLastItemAndCopyTest()
245
+    {
246
+        // : Given
247
+        Integer[] array1 = {4, 5, 102, 6, -7, 12, -32, 92, 8};
248
+
249
+        // : When
250
+        Integer[] actual = Arraz.removeLastItemAndCopy(array1);
251
+
252
+        // : Then
253
+        Assert.assertNotNull(actual);
254
+    }
255
+    @Test
256
+
257
+    public void insertAtStartAndCopy()
258
+    {
259
+        // : Given
260
+        Integer value = 9;
261
+        Integer[] array =  {4, 5, 102, 6, -7, 12, -32, 92, 8};
262
+
263
+        // : When
264
+        Integer[] actual = Arraz.insertAtStartAndCopy(array,value);
265
+
266
+        // : Then
267
+        Assert.assertNotNull(actual);
268
+    }
269
+
270
+    @Test
271
+
272
+    public void insertAtEndAndCopyTest()
273
+    {
274
+        // : Given
275
+        Integer value = 9;
276
+        Integer[] array =  {4, 5, 102, 6, -7, 12, -32, 92, 8};
277
+
278
+        // : When
279
+        Integer[] actual = Arraz.insertAtEndAndCopy(array,value);
280
+
281
+        // : Then
282
+        Assert.assertNotNull(actual);
283
+    }
284
+    @Test
285
+    public void sortArrayIntoEvensThenOddsTest()
286
+    {
287
+        // : Given
288
+        Integer[] inputArray = {4, 5, 102, 6, -7, 12, -32, 92, 8};
289
+        //Integer[] expected = {-7,-32,4,5,6,8,12,92};
290
+
291
+        // : When
292
+        Integer[] actual = Arraz.sortArrayIntoEvensThenOdds(inputArray);
293
+
294
+        // : Then
295
+
296
+        Assert.assertNotNull(actual);
297
+    }
298
+
299
+    @Test
300
+    public void OddEvenTest()
301
+    {
302
+        // : Given
303
+        Integer[] array = {4, 5, 102, 6, -7, 12, -32, 92, 8};
304
+
305
+        // : When
306
+
307
+    }
308
+
309
+    @Test
310
+    public void MaxMinTest()
311
+    {
312
+        // : Given
313
+        Integer[] array = {4, 5, 102, 6, -7, 12, -32, 92, 8};
314
+
315
+        // : When
316
+
317
+    }
318
+}
4 319
 
5
-}

+ 30
- 0
arraz/src/test/java/MaxMin.java 查看文件

@@ -0,0 +1,30 @@
1
+import java.util.Arrays;
2
+
3
+public class MaxMin {
4
+    Integer[] array;
5
+    Integer max = 0;
6
+    Integer min = 0;
7
+
8
+    public MaxMin(Integer[] array) {
9
+        this.array = array;
10
+    }
11
+
12
+    public MaxMin(Integer max, Integer min) {
13
+        this.max = max;
14
+        this.min = min;
15
+    }
16
+
17
+    public void getMaxMin(Integer[] array) {
18
+        Arrays.sort(array);
19
+        max = array[array.length - 1];
20
+        min = array[0];
21
+    }
22
+
23
+    public Integer getMax() {
24
+        return max;
25
+    }
26
+
27
+    public Integer getMin() {
28
+        return min;
29
+    }
30
+}

+ 32
- 0
arraz/src/test/java/OddEven.java 查看文件

@@ -0,0 +1,32 @@
1
+public class OddEven {
2
+    public Integer odd = 0;
3
+    public Integer even = 0;
4
+    private Integer[] array;
5
+
6
+    public OddEven(Integer odd, Integer even) {
7
+        this.even = even;
8
+        this.odd = odd;
9
+    }
10
+
11
+    public OddEven(Integer[] array) {
12
+        this.array = array;
13
+    }
14
+
15
+    public void getEvenOdd() {
16
+        for (Integer i : array) {
17
+            if (i % 2 == 0) {
18
+                even = even + 1;
19
+            } else {
20
+                odd = odd + 1;
21
+            }
22
+        }
23
+    }
24
+
25
+    public Integer getEven() {
26
+        return even;
27
+    }
28
+
29
+    public Integer getOdd() {
30
+        return odd;
31
+    }
32
+}