瀏覽代碼

more updates 12 left

Whitney Martinez 6 年之前
父節點
當前提交
b5c510e4c9

+ 16
- 0
arraz/.idea/compiler.xml 查看文件

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

+ 13
- 0
arraz/.idea/misc.xml 查看文件

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

+ 6
- 0
arraz/.idea/vcs.xml 查看文件

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>

+ 451
- 0
arraz/.idea/workspace.xml 查看文件

1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="88ea8df4-5dbc-49b8-b3df-2eb51cffc0b3" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Arraz.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/src/main/java/MoreArrayc.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/MoreArrayc.java" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/src/main/java/OddsAndEvens.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/OddsAndEvens.java" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/src/main/java/OddsAndEvensMethods.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/OddsAndEvensMethods.java" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/ArrazTest.java" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/src/test/java/OddsAndEventsTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/OddsAndEventsTest.java" afterDir="false" />
13
+    </list>
14
+    <ignored path="$PROJECT_DIR$/target/" />
15
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
16
+    <option name="SHOW_DIALOG" value="false" />
17
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
18
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
19
+    <option name="LAST_RESOLUTION" value="IGNORE" />
20
+  </component>
21
+  <component name="FUSProjectUsageTrigger">
22
+    <session id="1079749333">
23
+      <usages-collector id="statistics.lifecycle.project">
24
+        <counts>
25
+          <entry key="project.open.time.3" value="1" />
26
+          <entry key="project.opened" value="1" />
27
+        </counts>
28
+      </usages-collector>
29
+      <usages-collector id="statistics.file.extensions.open">
30
+        <counts>
31
+          <entry key="java" value="17" />
32
+          <entry key="md" value="2" />
33
+        </counts>
34
+      </usages-collector>
35
+      <usages-collector id="statistics.file.types.open">
36
+        <counts>
37
+          <entry key="JAVA" value="17" />
38
+          <entry key="Markdown" value="2" />
39
+        </counts>
40
+      </usages-collector>
41
+      <usages-collector id="statistics.file.extensions.edit">
42
+        <counts>
43
+          <entry key="java" value="7032" />
44
+        </counts>
45
+      </usages-collector>
46
+      <usages-collector id="statistics.file.types.edit">
47
+        <counts>
48
+          <entry key="JAVA" value="7032" />
49
+        </counts>
50
+      </usages-collector>
51
+    </session>
52
+  </component>
53
+  <component name="FileEditorManager">
54
+    <leaf>
55
+      <file pinned="false" current-in-tab="false">
56
+        <entry file="file://$PROJECT_DIR$/src/test/java/MoreArraysTest.java">
57
+          <provider selected="true" editor-type-id="text-editor">
58
+            <state relative-caret-position="181">
59
+              <caret line="158" column="33" selection-start-line="158" selection-start-column="33" selection-end-line="158" selection-end-column="33" />
60
+              <folding>
61
+                <element signature="imports" expanded="true" />
62
+              </folding>
63
+            </state>
64
+          </provider>
65
+        </entry>
66
+      </file>
67
+      <file pinned="false" current-in-tab="true">
68
+        <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrayc.java">
69
+          <provider selected="true" editor-type-id="text-editor">
70
+            <state relative-caret-position="170">
71
+              <caret line="124" lean-forward="true" selection-start-line="124" selection-end-line="124" />
72
+              <folding>
73
+                <element signature="imports" expanded="true" />
74
+                <element signature="e#446#455#0" expanded="true" />
75
+              </folding>
76
+            </state>
77
+          </provider>
78
+        </entry>
79
+      </file>
80
+    </leaf>
81
+  </component>
82
+  <component name="FileTemplateManagerImpl">
83
+    <option name="RECENT_TEMPLATES">
84
+      <list>
85
+        <option value="Class" />
86
+      </list>
87
+    </option>
88
+  </component>
89
+  <component name="Git.Settings">
90
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
91
+  </component>
92
+  <component name="IdeDocumentHistory">
93
+    <option name="CHANGED_PATHS">
94
+      <list>
95
+        <option value="$PROJECT_DIR$/src/main/java/Arraz.java" />
96
+        <option value="$PROJECT_DIR$/src/test/java/ArrazTest.java" />
97
+        <option value="$PROJECT_DIR$/src/main/java/OddsAndEvens.java" />
98
+        <option value="$PROJECT_DIR$/src/main/java/OddsAndEvensMethods.java" />
99
+        <option value="$PROJECT_DIR$/src/test/java/OddsAndEventsTest.java" />
100
+        <option value="$PROJECT_DIR$/src/main/java/MoreArrays.java" />
101
+        <option value="$PROJECT_DIR$/src/test/java/MoreArrays.java" />
102
+        <option value="$PROJECT_DIR$/src/main/java/MoreArrayz.java" />
103
+        <option value="$PROJECT_DIR$/src/test/java/MoreArraysTest.java" />
104
+        <option value="$PROJECT_DIR$/src/main/java/MoreArrayc.java" />
105
+      </list>
106
+    </option>
107
+  </component>
108
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
109
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
110
+  <component name="JsGulpfileManager">
111
+    <detection-done>true</detection-done>
112
+    <sorting>DEFINITION_ORDER</sorting>
113
+  </component>
114
+  <component name="ProjectFrameBounds">
115
+    <option name="x" value="225" />
116
+    <option name="y" value="23" />
117
+    <option name="width" value="991" />
118
+    <option name="height" value="709" />
119
+  </component>
120
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
121
+  <component name="ProjectView">
122
+    <navigator proportions="" version="1">
123
+      <foldersAlwaysOnTop value="true" />
124
+    </navigator>
125
+    <panes>
126
+      <pane id="PackagesPane" />
127
+      <pane id="ProjectPane">
128
+        <subPane>
129
+          <expand>
130
+            <path>
131
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
132
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
133
+            </path>
134
+            <path>
135
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
136
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
137
+              <item name="src" type="462c0819:PsiDirectoryNode" />
138
+            </path>
139
+            <path>
140
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
141
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
142
+              <item name="src" type="462c0819:PsiDirectoryNode" />
143
+              <item name="main" type="462c0819:PsiDirectoryNode" />
144
+            </path>
145
+            <path>
146
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
147
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
148
+              <item name="src" type="462c0819:PsiDirectoryNode" />
149
+              <item name="main" type="462c0819:PsiDirectoryNode" />
150
+              <item name="java" type="462c0819:PsiDirectoryNode" />
151
+            </path>
152
+            <path>
153
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
154
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
155
+              <item name="src" type="462c0819:PsiDirectoryNode" />
156
+              <item name="test" type="462c0819:PsiDirectoryNode" />
157
+            </path>
158
+            <path>
159
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
160
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
161
+              <item name="src" type="462c0819:PsiDirectoryNode" />
162
+              <item name="test" type="462c0819:PsiDirectoryNode" />
163
+              <item name="java" type="462c0819:PsiDirectoryNode" />
164
+            </path>
165
+          </expand>
166
+          <select />
167
+        </subPane>
168
+      </pane>
169
+      <pane id="Scope" />
170
+    </panes>
171
+  </component>
172
+  <component name="PropertiesComponent">
173
+    <property name="WebServerToolWindowFactoryState" value="false" />
174
+    <property name="aspect.path.notification.shown" value="true" />
175
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544235469961" />
176
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
177
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
178
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
179
+  </component>
180
+  <component name="RunDashboard">
181
+    <option name="ruleStates">
182
+      <list>
183
+        <RuleState>
184
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
185
+        </RuleState>
186
+        <RuleState>
187
+          <option name="name" value="StatusDashboardGroupingRule" />
188
+        </RuleState>
189
+      </list>
190
+    </option>
191
+  </component>
192
+  <component name="RunManager" selected="JUnit.MoreArraysTest.find2ndLargestValueFromArrayTest">
193
+    <configuration name="MoreArraysTest.CopyAnArrayByIteratingitTestAddingnew" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
194
+      <module name="arraz" />
195
+      <option name="PACKAGE_NAME" value="" />
196
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
197
+      <option name="METHOD_NAME" value="CopyAnArrayByIteratingitTestAddingnew" />
198
+      <option name="TEST_OBJECT" value="method" />
199
+      <method v="2">
200
+        <option name="Make" enabled="true" />
201
+      </method>
202
+    </configuration>
203
+    <configuration name="MoreArraysTest.CopyAnArrayByloopingitTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
204
+      <module name="arraz" />
205
+      <option name="PACKAGE_NAME" value="" />
206
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
207
+      <option name="METHOD_NAME" value="CopyAnArrayByloopingitTest" />
208
+      <option name="TEST_OBJECT" value="method" />
209
+      <method v="2">
210
+        <option name="Make" enabled="true" />
211
+      </method>
212
+    </configuration>
213
+    <configuration name="MoreArraysTest.CopyAnArrayByloopingitTestadding" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
214
+      <module name="arraz" />
215
+      <option name="PACKAGE_NAME" value="" />
216
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
217
+      <option name="METHOD_NAME" value="CopyAnArrayByloopingitTestadding" />
218
+      <option name="TEST_OBJECT" value="method" />
219
+      <method v="2">
220
+        <option name="Make" enabled="true" />
221
+      </method>
222
+    </configuration>
223
+    <configuration name="MoreArraysTest.find2ndLargestValueFromArrayTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
224
+      <module name="arraz" />
225
+      <option name="PACKAGE_NAME" value="" />
226
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
227
+      <option name="METHOD_NAME" value="find2ndLargestValueFromArrayTest" />
228
+      <option name="TEST_OBJECT" value="method" />
229
+      <method v="2">
230
+        <option name="Make" enabled="true" />
231
+      </method>
232
+    </configuration>
233
+    <configuration name="MoreArraysTest.removeElementFromArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
234
+      <module name="arraz" />
235
+      <option name="PACKAGE_NAME" value="" />
236
+      <option name="MAIN_CLASS_NAME" value="MoreArraysTest" />
237
+      <option name="METHOD_NAME" value="removeElementFromArray" />
238
+      <option name="TEST_OBJECT" value="method" />
239
+      <method v="2">
240
+        <option name="Make" enabled="true" />
241
+      </method>
242
+    </configuration>
243
+    <list>
244
+      <item itemvalue="JUnit.MoreArraysTest.CopyAnArrayByIteratingitTestAddingnew" />
245
+      <item itemvalue="JUnit.MoreArraysTest.CopyAnArrayByloopingitTest" />
246
+      <item itemvalue="JUnit.MoreArraysTest.CopyAnArrayByloopingitTestadding" />
247
+      <item itemvalue="JUnit.MoreArraysTest.removeElementFromArray" />
248
+      <item itemvalue="JUnit.MoreArraysTest.find2ndLargestValueFromArrayTest" />
249
+    </list>
250
+    <recent_temporary>
251
+      <list>
252
+        <item itemvalue="JUnit.MoreArraysTest.find2ndLargestValueFromArrayTest" />
253
+        <item itemvalue="JUnit.MoreArraysTest.removeElementFromArray" />
254
+        <item itemvalue="JUnit.MoreArraysTest.CopyAnArrayByloopingitTestadding" />
255
+        <item itemvalue="JUnit.MoreArraysTest.CopyAnArrayByloopingitTest" />
256
+        <item itemvalue="JUnit.MoreArraysTest.CopyAnArrayByIteratingitTestAddingnew" />
257
+      </list>
258
+    </recent_temporary>
259
+  </component>
260
+  <component name="SvnConfiguration">
261
+    <configuration />
262
+  </component>
263
+  <component name="TaskManager">
264
+    <task active="true" id="Default" summary="Default task">
265
+      <changelist id="88ea8df4-5dbc-49b8-b3df-2eb51cffc0b3" name="Default Changelist" comment="" />
266
+      <created>1544063273407</created>
267
+      <option name="number" value="Default" />
268
+      <option name="presentableId" value="Default" />
269
+      <updated>1544063273407</updated>
270
+      <workItem from="1544063277559" duration="32781000" />
271
+    </task>
272
+    <servers />
273
+  </component>
274
+  <component name="TestHistory">
275
+    <history-entry file="MoreArraysTest_removeElementFromArray - 2018.12.07 at 18h 47m 32s.xml">
276
+      <configuration name="MoreArraysTest.removeElementFromArray" configurationId="JUnit" />
277
+    </history-entry>
278
+    <history-entry file="MoreArraysTest_removeElementFromArray - 2018.12.07 at 18h 54m 57s.xml">
279
+      <configuration name="MoreArraysTest.removeElementFromArray" configurationId="JUnit" />
280
+    </history-entry>
281
+    <history-entry file="MoreArraysTest_removeElementFromArray - 2018.12.07 at 19h 03m 00s.xml">
282
+      <configuration name="MoreArraysTest.removeElementFromArray" configurationId="JUnit" />
283
+    </history-entry>
284
+    <history-entry file="MoreArraysTest_removeElementFromArray - 2018.12.07 at 19h 03m 10s.xml">
285
+      <configuration name="MoreArraysTest.removeElementFromArray" configurationId="JUnit" />
286
+    </history-entry>
287
+    <history-entry file="MoreArraysTest_removeElementFromArray - 2018.12.07 at 19h 04m 53s.xml">
288
+      <configuration name="MoreArraysTest.removeElementFromArray" configurationId="JUnit" />
289
+    </history-entry>
290
+    <history-entry file="MoreArraysTest_removeElementFromArray - 2018.12.07 at 19h 05m 23s.xml">
291
+      <configuration name="MoreArraysTest.removeElementFromArray" configurationId="JUnit" />
292
+    </history-entry>
293
+    <history-entry file="MoreArraysTest_removeElementFromArray - 2018.12.07 at 19h 05m 30s.xml">
294
+      <configuration name="MoreArraysTest.removeElementFromArray" configurationId="JUnit" />
295
+    </history-entry>
296
+    <history-entry file="MoreArraysTest_find2ndLargestValueFromArrayTest - 2018.12.07 at 21h 16m 54s.xml">
297
+      <configuration name="MoreArraysTest.find2ndLargestValueFromArrayTest" configurationId="JUnit" />
298
+    </history-entry>
299
+    <history-entry file="MoreArraysTest_find2ndLargestValueFromArrayTest - 2018.12.07 at 21h 17m 04s.xml">
300
+      <configuration name="MoreArraysTest.find2ndLargestValueFromArrayTest" configurationId="JUnit" />
301
+    </history-entry>
302
+    <history-entry file="MoreArraysTest_find2ndLargestValueFromArrayTest - 2018.12.07 at 21h 17m 14s.xml">
303
+      <configuration name="MoreArraysTest.find2ndLargestValueFromArrayTest" configurationId="JUnit" />
304
+    </history-entry>
305
+  </component>
306
+  <component name="TimeTrackingManager">
307
+    <option name="totallyTimeSpent" value="32781000" />
308
+  </component>
309
+  <component name="ToolWindowManager">
310
+    <frame x="225" y="23" width="991" height="709" extended-state="0" />
311
+    <editor active="true" />
312
+    <layout>
313
+      <window_info id="Image Layers" />
314
+      <window_info id="Designer" />
315
+      <window_info id="UI Designer" />
316
+      <window_info id="Capture Tool" />
317
+      <window_info id="Favorites" side_tool="true" />
318
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.23498419" />
319
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
320
+      <window_info anchor="bottom" id="Messages" weight="0.3273906" />
321
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
322
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
323
+      <window_info anchor="bottom" id="Terminal" />
324
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
325
+      <window_info anchor="bottom" id="Message" order="0" />
326
+      <window_info anchor="bottom" id="Find" order="1" />
327
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32901135" />
328
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.3987034" />
329
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
330
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
331
+      <window_info anchor="bottom" id="TODO" order="6" />
332
+      <window_info anchor="right" id="Palette" />
333
+      <window_info anchor="right" id="Theme Preview" />
334
+      <window_info anchor="right" id="Capture Analysis" />
335
+      <window_info anchor="right" id="Palette&#9;" />
336
+      <window_info anchor="right" id="Database" />
337
+      <window_info anchor="right" id="Maven Projects" />
338
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
339
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
340
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
341
+    </layout>
342
+  </component>
343
+  <component name="TypeScriptGeneratedFilesManager">
344
+    <option name="version" value="1" />
345
+  </component>
346
+  <component name="VcsContentAnnotationSettings">
347
+    <option name="myLimit" value="2678400000" />
348
+  </component>
349
+  <component name="editorHistoryManager">
350
+    <entry file="file://$PROJECT_DIR$/../README.md">
351
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
352
+        <state split_layout="SPLIT">
353
+          <first_editor />
354
+          <second_editor />
355
+        </state>
356
+      </provider>
357
+    </entry>
358
+    <entry file="file://$PROJECT_DIR$/src/main/java/OddsAndEvens.java">
359
+      <provider selected="true" editor-type-id="text-editor">
360
+        <state relative-caret-position="195">
361
+          <caret line="13" selection-start-line="13" selection-end-line="13" />
362
+        </state>
363
+      </provider>
364
+    </entry>
365
+    <entry file="file://$PROJECT_DIR$/src/test/java/OddsAndEventsTest.java">
366
+      <provider selected="true" editor-type-id="text-editor">
367
+        <state relative-caret-position="247">
368
+          <caret line="77" column="3" selection-start-line="77" selection-start-column="3" selection-end-line="77" selection-end-column="3" />
369
+          <folding>
370
+            <element signature="imports" expanded="true" />
371
+          </folding>
372
+        </state>
373
+      </provider>
374
+    </entry>
375
+    <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrays.java">
376
+      <provider selected="true" editor-type-id="text-editor">
377
+        <state relative-caret-position="60">
378
+          <caret line="4" selection-start-line="4" selection-end-line="4" />
379
+        </state>
380
+      </provider>
381
+    </entry>
382
+    <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrayz.java">
383
+      <provider selected="true" editor-type-id="text-editor">
384
+        <state relative-caret-position="60">
385
+          <caret line="4" column="4" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="4" />
386
+        </state>
387
+      </provider>
388
+    </entry>
389
+    <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
390
+      <provider selected="true" editor-type-id="text-editor">
391
+        <state relative-caret-position="1695">
392
+          <caret line="113" selection-start-line="113" selection-end-line="113" />
393
+        </state>
394
+      </provider>
395
+    </entry>
396
+    <entry file="file://$PROJECT_DIR$/src/main/java/OddsAndEvensMethods.java">
397
+      <provider selected="true" editor-type-id="text-editor">
398
+        <state relative-caret-position="97">
399
+          <caret line="29" column="23" selection-start-line="29" selection-start-column="23" selection-end-line="29" selection-end-column="23" />
400
+        </state>
401
+      </provider>
402
+    </entry>
403
+    <entry file="file://$PROJECT_DIR$/src/test/java/ArrazTest.java">
404
+      <provider selected="true" editor-type-id="text-editor">
405
+        <state relative-caret-position="262">
406
+          <caret line="244" selection-start-line="244" selection-end-line="244" />
407
+          <folding>
408
+            <element signature="imports" expanded="true" />
409
+          </folding>
410
+        </state>
411
+      </provider>
412
+    </entry>
413
+    <entry file="file://$PROJECT_DIR$/src/test/java/MoreArraysTest.java">
414
+      <provider selected="true" editor-type-id="text-editor">
415
+        <state relative-caret-position="181">
416
+          <caret line="158" column="33" selection-start-line="158" selection-start-column="33" selection-end-line="158" selection-end-column="33" />
417
+          <folding>
418
+            <element signature="imports" expanded="true" />
419
+          </folding>
420
+        </state>
421
+      </provider>
422
+    </entry>
423
+    <entry file="file://$PROJECT_DIR$/src/main/java/MoreArrayc.java">
424
+      <provider selected="true" editor-type-id="text-editor">
425
+        <state relative-caret-position="170">
426
+          <caret line="124" lean-forward="true" selection-start-line="124" selection-end-line="124" />
427
+          <folding>
428
+            <element signature="imports" expanded="true" />
429
+            <element signature="e#446#455#0" expanded="true" />
430
+          </folding>
431
+        </state>
432
+      </provider>
433
+    </entry>
434
+  </component>
435
+  <component name="masterDetails">
436
+    <states>
437
+      <state key="ProjectJDKs.UI">
438
+        <settings>
439
+          <last-edited>1.8</last-edited>
440
+          <splitter-proportions>
441
+            <option name="proportions">
442
+              <list>
443
+                <option value="0.2" />
444
+              </list>
445
+            </option>
446
+          </splitter-proportions>
447
+        </settings>
448
+      </state>
449
+    </states>
450
+  </component>
451
+</project>

+ 15
- 0
arraz/arraz.iml 查看文件

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

+ 12
- 0
arraz/pom.xml 查看文件

7
     <groupId>rocks.zipcode.arraysgonewild</groupId>
7
     <groupId>rocks.zipcode.arraysgonewild</groupId>
8
     <artifactId>arraz</artifactId>
8
     <artifactId>arraz</artifactId>
9
     <version>1.0-SNAPSHOT</version>
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
     <dependencies>
22
     <dependencies>
11
         <dependency>
23
         <dependency>
12
             <groupId>junit</groupId>
24
             <groupId>junit</groupId>

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

1
+import java.util.Arrays;
2
+
1
 public class Arraz {
3
 public class Arraz {
4
+
5
+
6
+
7
+    public Boolean checkingForNull(String[] arr){
8
+
9
+       Boolean flag = null;
10
+
11
+
12
+        for (int i = 0; i < arr.length ; i++) {
13
+            if(arr[i] == null){
14
+
15
+                return flag = true;
16
+            }else{
17
+                 flag = false;
18
+            }
19
+
20
+        }
21
+
22
+        return flag;
23
+
24
+
25
+    }
26
+
27
+
28
+    public int sumValuesOfArrayInt(int[] arr) {
29
+
30
+        int value = 0;
31
+
32
+        for (int i = 0; i < arr.length; i++) {
33
+            value += arr[i];
34
+        }
35
+
36
+        return value;
37
+    }
38
+
39
+    public double sumValuesOfArrayDouble(double[] arr) {
40
+        int value = 0;
41
+
42
+        for(double a : arr)
43
+
44
+            value += a;
45
+
46
+        return value;
47
+    }
48
+
49
+    public int getTheAvgInt(int[] arr) {
50
+
51
+        int value = sumValuesOfArrayInt(arr);
52
+
53
+        int avg = value / arr.length ;
54
+
55
+        return avg;
56
+    }
57
+
58
+    public double getTheAvgDoub(double[] arr) {
59
+
60
+        double value = sumValuesOfArrayDouble(arr);
61
+
62
+        value = value / arr.length ;
63
+
64
+        return value;
65
+    }
66
+
67
+
68
+    public static long theFibonacci(long i){
69
+
70
+        if(i == 0){
71
+            return 0;
72
+        }else if(i <= 2){
73
+            return 1;
74
+        }
75
+       return theFibonacci(i - 1) + theFibonacci(i - 2);
76
+
77
+
78
+    }
79
+
80
+    public Boolean containsValue(int [] arr, int value) {
81
+
82
+        Boolean flag = null;
83
+
84
+        for (int i = 0; i < arr.length; i++) {
85
+
86
+
87
+            if (arr[i] == value) {
88
+                return flag = true;
89
+            }
90
+        }
91
+        return flag = false;
92
+
93
+
94
+    }
95
+
96
+    public int[] reverseAnArray(int [] arr){
97
+
98
+        int [] arr2 = new int[arr.length];
99
+        int counter = 0;
100
+
101
+        for (int i = arr.length-1; i >= 0; i--) {
102
+
103
+            arr2[counter] = arr[i];
104
+            counter++;
105
+
106
+
107
+        }
108
+
109
+        return  arr2;
110
+
111
+    }
112
+
113
+
114
+
115
+
2
 }
116
 }

+ 134
- 1
arraz/src/main/java/MoreArrayc.java 查看文件

1
-package PACKAGE_NAME;
1
+import java.util.ArrayList;
2
+import java.util.Arrays;
3
+import java.util.Iterator;
2
 
4
 
3
 public class MoreArrayc {
5
 public class MoreArrayc {
6
+
7
+
8
+
9
+    public int findIndexOf(int[] arr, int value) {
10
+
11
+        int container = 0;
12
+
13
+
14
+        for (int i = 0; i < arr.length; i++) {
15
+
16
+            if (arr[i] == value) {
17
+                container = i;
18
+
19
+            }
20
+        }
21
+        return container;
22
+    }
23
+
24
+    public Integer[] copyArrayByIteratingthroughIt(Integer [] arr){
25
+
26
+        ArrayList<Integer> arr1 = new ArrayList<Integer>(Arrays.asList(arr));
27
+        Iterator<Integer> interate = arr1.iterator();
28
+        Integer [] arr2 = new Integer[arr.length];
29
+        int count = 0;
30
+
31
+        while (interate.hasNext()){
32
+
33
+            arr2[count] = interate.next();
34
+            count++;
35
+
36
+        }
37
+
38
+        return arr2;
39
+
40
+    }
41
+
42
+    public Integer[] copyArrayByLoopingthroughIt(Integer [] arr){
43
+
44
+
45
+        Integer [] arrCop = new Integer[arr.length];
46
+
47
+        for (int i = 0; i <arr.length ; i++) {
48
+
49
+            arrCop[i] = arr[i];
50
+        }
51
+
52
+        return arrCop;
53
+
54
+    }
55
+
56
+    public Boolean checkArrayForEquals(Integer[]arr,Integer []arr2){
57
+
58
+            Boolean flag = null;
59
+
60
+
61
+
62
+        for (int i = 0; i < arr.length; i++) {
63
+
64
+            if(arr[i] == arr2[i]){
65
+                flag = true;
66
+            }else{
67
+                flag = false;
68
+            }
69
+    }
70
+        return flag;
71
+    }
72
+
73
+    public Integer[] removeFromArray(Integer [] arr, int value){
74
+
75
+
76
+        for (int i = 0; i < arr.length; i++) {
77
+
78
+            if(arr[i] == value){
79
+
80
+                arr[i] = arr[i+1];
81
+
82
+
83
+            }
84
+
85
+        }
86
+        Integer[] cop = Arrays.copyOf(arr,arr.length-1);
87
+        return cop;
88
+
89
+    }
90
+
91
+    public Integer find2ndLargestValueFromArray(Integer [] arr){
92
+
93
+        Integer maxNum;
94
+        Integer secondMax;
95
+
96
+       if(arr.length <= 1){
97
+           return arr[0];
98
+       }
99
+
100
+       if(arr[0] < arr[1]) {
101
+            maxNum = arr[1];
102
+            secondMax = arr[0];
103
+
104
+       }else{
105
+           maxNum = arr[0];
106
+           secondMax = arr[1];
107
+       }
108
+
109
+        for (int i = 2; i < arr.length; i++) {
110
+
111
+            if(arr[i] > maxNum){
112
+
113
+                secondMax =maxNum;
114
+                maxNum = arr[i];
115
+
116
+            }else if(arr[i] < maxNum && arr[i] > secondMax){
117
+                secondMax = arr[i];
118
+            }
119
+
120
+        }
121
+        return secondMax;
122
+    }
4
 }
123
 }
124
+
125
+
126
+//    makeMeAnArrayListFromArray
127
+//    makeMeAnArrayFromArrayList
128
+//    check2ArraysForEqual
129
+//   averageArrayWithoutMaxMin
130
+//    ArrayHas65and77
131
+//    theTotalofTensIs30`
132
+//    makeMeACopyPlease
133
+//    removeLastItemAndCopy
134
+//    removeFirstItemAndCopy
135
+//    insertAtStartAndCopy
136
+//    insertAtEndAndCopy
137
+//    sortArrayIntoEvensThenOdds

+ 12
- 1
arraz/src/main/java/OddsAndEvens.java 查看文件

1
-package PACKAGE_NAME;
1
+import java.util.ArrayList;
2
 
2
 
3
 public class OddsAndEvens {
3
 public class OddsAndEvens {
4
+
5
+    public int odds;
6
+    public int evens;
7
+
8
+    public OddsAndEvens(int odds, int evens) {
9
+        this.odds = odds;
10
+        this.evens = evens;
11
+    }
12
+
13
+
14
+
4
 }
15
 }

+ 39
- 2
arraz/src/main/java/OddsAndEvensMethods.java 查看文件

1
-package PACKAGE_NAME;
1
+public class OddsAndEvensMethods extends OddsAndEvens {
2
 
2
 
3
-public class OddsAndEvensMethods {
3
+
4
+
5
+    public OddsAndEvensMethods(int odds, int evens) {
6
+
7
+        super(odds,evens);
8
+    }
9
+
10
+    public int getOddNums(int[] arr){
11
+
12
+        //ArrayList<Integer> containerInt = new ArrayList<Integer>();
13
+        int counter = 0;
14
+        for (int i = 0; i < arr.length; i++) {
15
+
16
+            if(arr[i] % 2 != 0){
17
+                counter ++;
18
+
19
+            }
20
+
21
+        }
22
+        return this.odds = counter;
23
+    }
24
+    public int getEvensNums(int[] arr){
25
+
26
+        //ArrayList<Integer> containerInt = new ArrayList<Integer>();
27
+        int counter = 0;
28
+        for (int i = 0; i < arr.length; i++) {
29
+
30
+            if(arr[i] != 0) {
31
+
32
+                if (arr[i] % 2 == 0) {
33
+                    counter++;
34
+
35
+                }
36
+            }
37
+
38
+        }
39
+        return this.evens = counter;
40
+    }
4
 }
41
 }

+ 242
- 1
arraz/src/test/java/ArrazTest.java 查看文件

1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
1
 import static org.junit.Assert.*;
4
 import static org.junit.Assert.*;
2
 
5
 
3
 public class ArrazTest {
6
 public class ArrazTest {
4
 
7
 
5
-}
8
+    Arraz a = new Arraz();
9
+
10
+    @Test
11
+    public void sumValuesOfArrayIntTest1(){
12
+        //Given
13
+
14
+        int arr [] = {4,32,1,4};
15
+
16
+
17
+        //When
18
+        // 41
19
+
20
+        int actual = a.sumValuesOfArrayInt(arr);
21
+
22
+        //Then
23
+        Assert.assertEquals(41,actual);
24
+
25
+    }
26
+    @Test
27
+    public void sumValuesOfArrayIntTestNegative2(){
28
+        //Given
29
+
30
+        int arr [] = {-6,43,10,-3};
31
+
32
+
33
+        //When
34
+        // 44
35
+        int actual = a.sumValuesOfArrayInt(arr);
36
+        //Then
37
+
38
+        Assert.assertEquals(44,actual);
39
+
40
+    }
41
+
42
+    @Test
43
+    public void sumValuesOfArrayDoubleTest1(){
44
+
45
+        //Given
46
+
47
+        double arr [] = {6.0,43.4,10.3,-3.6};
48
+        double value = 0;
49
+
50
+
51
+        Double actual = a.sumValuesOfArrayDouble(arr);
52
+
53
+
54
+        //Then
55
+        Assert.assertEquals(55.0,actual);
56
+    }
57
+
58
+    @Test
59
+    public void sumValuesOfArrayDoubleTest2(){
60
+
61
+        //Given
62
+
63
+        double arr [] = {-65,4.4,3.4,-3.6};
64
+        double value = 0;
65
+
66
+
67
+        Double actual = a.sumValuesOfArrayDouble(arr);
68
+
69
+
70
+        //Then
71
+        Assert.assertEquals(-59.0,actual);
72
+    }
73
+
74
+    @Test
75
+    public void getTheAvgInt(){
76
+        //Given
77
+
78
+        int  arr [] = {65,4,4,3,36};
79
+
80
+
81
+        //When
82
+
83
+        int actual = a.getTheAvgInt(arr);
84
+
85
+        //Then
86
+        Assert.assertEquals(22,actual);
87
+    }
88
+
89
+    @Test
90
+    public void getTheAvgInt2(){
91
+        //Given
92
+
93
+        int  arr [] = {6,4,4,-399,36};
94
+        int value;
95
+
96
+        //When
97
+
98
+        value = a.sumValuesOfArrayInt(arr);
99
+
100
+        int actual = value / arr.length ;
101
+
102
+        //Then
103
+        Assert.assertEquals(-69,actual);
104
+    }
105
+
106
+    @Test
107
+    public void getTheAvgDoubTest(){
108
+        //Given
109
+
110
+        double arr [] = {6.5,0.4,45,3.0,36};
111
+
112
+
113
+        //When
114
+
115
+        double actual = a.getTheAvgDoub(arr);
116
+
117
+        //Then
118
+        Assert.assertEquals(18.0,actual);
119
+    }
120
+
121
+    @Test
122
+    public void getTheAvgDoubTest2(){
123
+        //Given
124
+
125
+        double arr [] = {-6.5,0.4,-890,3050.0,36};
126
+
127
+
128
+        //When
129
+
130
+        double actual = a.getTheAvgDoub(arr);
131
+
132
+        //Then
133
+        Assert.assertEquals(438.2,actual);
134
+    }
135
+
136
+
137
+    @Test
138
+    public void gettingThoseNullsTest(){
139
+        //Given
140
+
141
+        String arr [] = {"Connor","Frank",null,"Steven","Marshell"};
142
+
143
+
144
+        //When
145
+
146
+        Boolean actual = a.checkingForNull(arr);
147
+
148
+        //Then
149
+        Assert.assertTrue(actual);
150
+    }
151
+
152
+    @Test
153
+    public void gettingThoseNoNullsTest(){
154
+        //Given
155
+
156
+        String arr [] = {"Carol","Frank","Steven","Marshell"};
157
+
158
+
159
+        //When
160
+
161
+        Boolean actual = a.checkingForNull(arr);
162
+
163
+        //Then
164
+        Assert.assertFalse(actual);
165
+    }
166
+
167
+    @Test
168
+    public void testing_TheFibonacci() {
169
+
170
+        long i = 44;
171
+
172
+
173
+        System.out.println(a.theFibonacci(i));
174
+
175
+
176
+
177
+    }
178
+
179
+    @Test
180
+    public void containsValueTestingFalse() {
181
+
182
+        int[] arr = {1, 2, 3, 4};
183
+
184
+        int value = 100;
185
+
186
+       Boolean actual = a.containsValue(arr,value);
187
+
188
+
189
+        Assert.assertFalse(actual);
190
+    }
191
+    @Test
192
+    public void containsValueTestingTrue() {
193
+
194
+        int[] arr = {1, 2, 3, 4};
195
+
196
+        int value = 1;
197
+
198
+        Boolean actual = a.containsValue(arr,value);
199
+
200
+
201
+        Assert.assertTrue(actual);
202
+    }
203
+
204
+    @Test
205
+    public void reverseArrayTest(){
206
+
207
+        int [] arr = {5,6,7,8,9};
208
+        int [] arr2 = {9,8,7,6,5};
209
+        Boolean flag = null;
210
+
211
+
212
+        int [] actual = a.reverseAnArray(arr);
213
+
214
+        for (int i = 0; i < arr.length ; i++) {
215
+
216
+            flag = actual[i] == arr2[i];
217
+
218
+            System.out.print(actual[i]);
219
+        }
220
+
221
+        Assert.assertTrue(flag);
222
+
223
+    }
224
+    @Test
225
+    public void reverseArrayTest2() {
226
+
227
+        int[] arr = {5, 6, 7, -3, 9};
228
+        int[] arr2 = {9, -3, 7, 6, 5};
229
+        Boolean flag = null;
230
+
231
+
232
+        int[] actual = a.reverseAnArray(arr);
233
+
234
+        for (int i = 0; i < arr.length; i++) {
235
+
236
+            flag = actual[i] == arr2[i];
237
+
238
+            System.out.print(actual[i]);
239
+        }
240
+
241
+        Assert.assertTrue(flag);
242
+
243
+        }
244
+
245
+
246
+    }

+ 130
- 9
arraz/src/test/java/MoreArraysTest.java 查看文件

1
+import com.sun.xml.internal.xsom.impl.scd.Iterators;
1
 import org.junit.Assert;
2
 import org.junit.Assert;
2
 import org.junit.Test;
3
 import org.junit.Test;
3
 
4
 
4
-public class MoreArraysTest {
5
+import java.util.Arrays;
6
+import java.util.Iterator;
5
 
7
 
8
+public class MoreArraysTest {
6
 
9
 
7
 
10
 
11
+    MoreArrayc more = new MoreArrayc();
8
     @Test
12
     @Test
9
     public void findIndexOfTest() {
13
     public void findIndexOfTest() {
10
         //Given
14
         //Given
14
 
18
 
15
         //When
19
         //When
16
 
20
 
17
-       int container = MoreArrayz.
21
+       int container = more.findIndexOf(arr,value);
18
 
22
 
19
 
23
 
20
         //Then
24
         //Then
27
         //Given
31
         //Given
28
         int [] arr = {5,1,7,8,9,4,3};
32
         int [] arr = {5,1,7,8,9,4,3};
29
         int value = 5;
33
         int value = 5;
30
-        int container = 0;
31
 
34
 
32
         //When
35
         //When
33
 
36
 
34
-        for (int i = 0; i < arr.length; i++) {
37
+        int container = more.findIndexOf(arr,value);
38
+
39
+
40
+        //Then
41
+        Assert.assertEquals(0,container);
42
+
43
+
44
+    }
45
+
46
+    @Test
47
+    public void CopyAnArrayByIteratingitTest(){
48
+
49
+        //Given
50
+        Integer [] arr = {5,1,7,8,9,4,3};
51
+        Integer [] arrCop;
52
+
53
+
54
+        //When
55
+        arrCop = more.copyArrayByIteratingthroughIt(arr);
56
+
57
+
58
+        //Then
59
+        Assert.assertTrue(Arrays.equals(arr,arrCop));
60
+
61
+    }
62
+
63
+    @Test
64
+    public void CopyAnArrayByIteratingitTestAddingnew(){
65
+
66
+        //Given
67
+        Integer [] arr = {5,1,7,8,9,4,3};
68
+        Integer [] arrCop;
69
+
70
+
71
+        //When
72
+        arrCop = more.copyArrayByIteratingthroughIt(arr);
73
+
74
+        arrCop [4] = 8;
75
+
76
+        //Then
77
+        Assert.assertFalse(Arrays.equals(arr,arrCop));
78
+
79
+    }
80
+
81
+    @Test
82
+    public void check2ArraysForEquals(){
83
+
84
+        //Given
85
+        Integer [] arr = {5,1,7,8,9,4,3};
86
+        Integer [] arr2 = {5,1,7,8,9,4,3};
35
 
87
 
36
-            if(arr[i] == value){
37
-                container = i;
38
 
88
 
39
-            }
40
-        }
41
 
89
 
90
+        //When
42
 
91
 
92
+        Boolean flag = more.checkArrayForEquals(arr,arr2);
43
         //Then
93
         //Then
44
-        Assert.assertEquals(3,container);
45
 
94
 
95
+        Assert.assertTrue(flag);
46
 
96
 
47
     }
97
     }
98
+
99
+    @Test
100
+    public void CopyAnArrayByloopingitTest(){
101
+
102
+        //Given
103
+        Integer [] arr = {5,1,7,8,9,4,3};
104
+        Integer [] arrCop;
105
+
106
+
107
+        //When
108
+        arrCop = more.copyArrayByLoopingthroughIt(arr);
109
+
110
+
111
+
112
+        //Then
113
+        Assert.assertTrue(Arrays.equals(arr,arrCop));
114
+
115
+    }
116
+
117
+    @Test
118
+    public void CopyAnArrayByloopingitTestadding(){
119
+
120
+        //Given
121
+        Integer [] arr = {5,1,7,8,9,4,3};
122
+        Integer [] arrCop;
123
+
124
+
125
+        //When
126
+        arrCop = more.copyArrayByLoopingthroughIt(arr);
127
+
128
+        arrCop[0] = 4;
129
+
130
+        //Then
131
+        Assert.assertFalse(Arrays.equals(arr,arrCop));
132
+
133
+    }
134
+
135
+    @Test
136
+    public void removeElementFromArray(){
137
+
138
+        //Given
139
+        Integer [] arr = {5,1,7,8,9,4,3};
140
+        int element = 4;
141
+        int expected = 6;
142
+
143
+
144
+        //When
145
+
146
+        Integer[] cop = more.removeFromArray(arr,element);
147
+
148
+
149
+        //Then
150
+
151
+        Assert.assertEquals(expected,cop.length);
152
+
153
+
154
+    }
155
+
156
+    @Test
157
+    public void find2ndLargestValueFromArrayTest (){
158
+        //Given
159
+        Integer [] arr = {5,1,7,8,9,4,3};
160
+
161
+        //When
162
+        Integer actual = more.find2ndLargestValueFromArray(arr);
163
+
164
+        //Then
165
+
166
+        Assert.assertEquals(8,actual);
167
+    }
168
+
48
 }
169
 }

+ 76
- 1
arraz/src/test/java/OddsAndEventsTest.java 查看文件

1
-package PACKAGE_NAME;
1
+import org.junit.Assert;
2
+import org.junit.Before;
3
+import org.junit.Test;
2
 
4
 
3
 public class OddsAndEventsTest {
5
 public class OddsAndEventsTest {
6
+
7
+    OddsAndEvensMethods oNEM = new OddsAndEvensMethods(0,0);
8
+    @Before
9
+    public void setup(){
10
+
11
+    }
12
+
13
+
14
+    @Test
15
+    public void getOddNumsTest(){
16
+
17
+        // Given
18
+        int [] arr = {5,6,7,8,9};
19
+        //When
20
+
21
+        int  actual =  oNEM.getOddNums(arr);
22
+
23
+        //Then
24
+
25
+        Assert.assertEquals(3,oNEM.odds);
26
+
27
+
28
+    }
29
+
30
+
31
+    @Test
32
+    public void getOddNumsTest2(){
33
+
34
+        // Given
35
+        int [] arr = {5,0,7,8,9};
36
+        //When
37
+
38
+        int  actual = oNEM.getOddNums(arr);
39
+
40
+        //Then
41
+
42
+        Assert.assertEquals(3,actual);
43
+
44
+
45
+    }
46
+
47
+    @Test
48
+    public void getEvenNumsTest(){
49
+
50
+        // Given
51
+        int [] arr = {5,1,7,8,9,4};
52
+        //When
53
+
54
+        int  actual = oNEM.getEvensNums(arr);
55
+
56
+        //Then
57
+
58
+        Assert.assertEquals(2,actual);
59
+
60
+
61
+    }
62
+    @Test
63
+    public void getEvenNumsTestZeroSnuckIn(){
64
+
65
+        // Given
66
+        int [] arr = {5,1,7,8,9,4,0,0,0};
67
+        //When
68
+
69
+        int  actual = oNEM.getEvensNums(arr);
70
+
71
+        //Then
72
+
73
+        Assert.assertEquals(2,actual);
74
+
75
+
76
+    }
77
+
78
+
4
 }
79
 }