Stwillia94 6 vuotta sitten
vanhempi
commit
ab0718e5e0

+ 1
- 1
.idea/compiler.xml Näytä tiedosto

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

+ 1
- 0
.idea/misc.xml Näytä tiedosto

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

+ 124
- 0
.idea/uiDesigner.xml Näytä tiedosto

@@ -0,0 +1,124 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Palette2">
4
+    <group name="Swing">
5
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
+      </item>
8
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
+      </item>
11
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
+      </item>
14
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
+      </item>
17
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
+        <initial-values>
20
+          <property name="text" value="Button" />
21
+        </initial-values>
22
+      </item>
23
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
+        <initial-values>
26
+          <property name="text" value="RadioButton" />
27
+        </initial-values>
28
+      </item>
29
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
+        <initial-values>
32
+          <property name="text" value="CheckBox" />
33
+        </initial-values>
34
+      </item>
35
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
+        <initial-values>
38
+          <property name="text" value="Label" />
39
+        </initial-values>
40
+      </item>
41
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
+          <preferred-size width="150" height="-1" />
44
+        </default-constraints>
45
+      </item>
46
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
+          <preferred-size width="150" height="-1" />
49
+        </default-constraints>
50
+      </item>
51
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
+          <preferred-size width="150" height="-1" />
54
+        </default-constraints>
55
+      </item>
56
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
+          <preferred-size width="150" height="50" />
59
+        </default-constraints>
60
+      </item>
61
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
+          <preferred-size width="150" height="50" />
64
+        </default-constraints>
65
+      </item>
66
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
+          <preferred-size width="150" height="50" />
69
+        </default-constraints>
70
+      </item>
71
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
+      </item>
74
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
+          <preferred-size width="150" height="50" />
77
+        </default-constraints>
78
+      </item>
79
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
+          <preferred-size width="150" height="50" />
82
+        </default-constraints>
83
+      </item>
84
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
+          <preferred-size width="150" height="50" />
87
+        </default-constraints>
88
+      </item>
89
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
+          <preferred-size width="200" height="200" />
92
+        </default-constraints>
93
+      </item>
94
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
+          <preferred-size width="200" height="200" />
97
+        </default-constraints>
98
+      </item>
99
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
+      </item>
102
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
+      </item>
105
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
+      </item>
108
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
+      </item>
111
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
+          <preferred-size width="-1" height="20" />
114
+        </default-constraints>
115
+      </item>
116
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
+      </item>
119
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
+      </item>
122
+    </group>
123
+  </component>
124
+</project>

+ 555
- 237
.idea/workspace.xml Näytä tiedosto

@@ -2,69 +2,184 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
-      <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
5
+      <change afterPath="$PROJECT_DIR$/.idea/uiDesigner.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/arraz/src/test/java/MaxMinTest.java" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/arraz/src/test/java/OddEvenTest.java" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/arraz/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/arraz.iml" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/arraz/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/pom.xml" afterDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
16
+      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7 17
     </list>
8 18
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9 19
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
-    <option name="TRACKING_ENABLED" value="true" />
11 20
     <option name="SHOW_DIALOG" value="false" />
12 21
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
13 22
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14 23
     <option name="LAST_RESOLUTION" value="IGNORE" />
15 24
   </component>
25
+  <component name="CoverageDataManager">
26
+    <SUITE FILE_PATH="coverage/ArraysGoneWild$ArrazTest_test2averageArrayWithoutMaxMin.ic" NAME="ArrazTest.test2averageArrayWithoutMaxMin Coverage Results" MODIFIED="1544321400088" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
27
+  </component>
28
+  <component name="FUSProjectUsageTrigger">
29
+    <session id="-834681622">
30
+      <usages-collector id="statistics.lifecycle.project">
31
+        <counts>
32
+          <entry key="project.closed" value="1" />
33
+          <entry key="project.open.time.1" value="1" />
34
+          <entry key="project.open.time.2" value="1" />
35
+          <entry key="project.opened" value="2" />
36
+        </counts>
37
+      </usages-collector>
38
+      <usages-collector id="statistics.file.extensions.edit">
39
+        <counts>
40
+          <entry key="dummy" value="5" />
41
+          <entry key="java" value="10913" />
42
+        </counts>
43
+      </usages-collector>
44
+      <usages-collector id="statistics.file.types.edit">
45
+        <counts>
46
+          <entry key="JAVA" value="10913" />
47
+          <entry key="PLAIN_TEXT" value="5" />
48
+        </counts>
49
+      </usages-collector>
50
+      <usages-collector id="statistics.file.extensions.open">
51
+        <counts>
52
+          <entry key="class" value="1" />
53
+          <entry key="java" value="15" />
54
+        </counts>
55
+      </usages-collector>
56
+      <usages-collector id="statistics.file.types.open">
57
+        <counts>
58
+          <entry key="CLASS" value="1" />
59
+          <entry key="JAVA" value="15" />
60
+        </counts>
61
+      </usages-collector>
62
+    </session>
63
+  </component>
16 64
   <component name="FileEditorManager">
17
-    <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">
29
-        <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
30
-          <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 />
34
-            </state>
35
-          </provider>
36
-        </entry>
37
-      </file>
38
-      <file leaf-file-name="ArrazTest.java" pinned="false" current-in-tab="false">
39
-        <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
40
-          <provider selected="true" editor-type-id="text-editor">
41
-            <state relative-caret-position="34">
42
-              <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
43
-              <folding />
44
-            </state>
45
-          </provider>
46
-        </entry>
47
-      </file>
48
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
49
-        <entry file="file://$PROJECT_DIR$/README.md">
50
-          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
51
-            <state split_layout="SPLIT">
52
-              <first_editor relative-caret-position="306">
53
-                <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
54
-                <folding />
55
-              </first_editor>
56
-              <second_editor />
57
-            </state>
58
-          </provider>
59
-        </entry>
60
-      </file>
61
-    </leaf>
65
+    <splitter split-orientation="horizontal" split-proportion="0.5">
66
+      <split-first>
67
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
68
+          <file pinned="false" current-in-tab="false">
69
+            <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
70
+              <provider selected="true" editor-type-id="text-editor">
71
+                <state relative-caret-position="450">
72
+                  <caret line="30" column="6" lean-forward="true" selection-start-line="30" selection-start-column="6" selection-end-line="30" selection-end-column="6" />
73
+                </state>
74
+              </provider>
75
+            </entry>
76
+          </file>
77
+          <file pinned="false" current-in-tab="true">
78
+            <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
79
+              <provider selected="true" editor-type-id="text-editor">
80
+                <state relative-caret-position="711">
81
+                  <caret line="201" lean-forward="true" selection-start-line="201" selection-end-line="201" />
82
+                  <folding>
83
+                    <element signature="imports" expanded="true" />
84
+                  </folding>
85
+                </state>
86
+              </provider>
87
+            </entry>
88
+          </file>
89
+          <file pinned="false" current-in-tab="false">
90
+            <entry file="file://$PROJECT_DIR$/arraz/src/test/java/OddEvenTest.java">
91
+              <provider selected="true" editor-type-id="text-editor">
92
+                <state relative-caret-position="465">
93
+                  <caret line="31" column="5" selection-start-line="31" selection-start-column="5" selection-end-line="31" selection-end-column="5" />
94
+                  <folding>
95
+                    <element signature="imports" expanded="true" />
96
+                  </folding>
97
+                </state>
98
+              </provider>
99
+            </entry>
100
+          </file>
101
+          <file pinned="false" current-in-tab="false">
102
+            <entry file="file://$PROJECT_DIR$/README.md">
103
+              <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
104
+                <state split_layout="SPLIT">
105
+                  <first_editor relative-caret-position="270">
106
+                    <caret line="18" selection-start-line="18" selection-end-line="18" />
107
+                  </first_editor>
108
+                  <second_editor />
109
+                </state>
110
+              </provider>
111
+            </entry>
112
+          </file>
113
+          <file pinned="false" current-in-tab="false">
114
+            <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
115
+              <provider selected="true" editor-type-id="text-editor">
116
+                <state relative-caret-position="90">
117
+                  <caret line="6" column="25" selection-start-line="6" selection-start-column="25" selection-end-line="6" selection-end-column="25" />
118
+                </state>
119
+              </provider>
120
+            </entry>
121
+          </file>
122
+          <file pinned="false" current-in-tab="false">
123
+            <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
124
+              <provider selected="true" editor-type-id="text-editor">
125
+                <state relative-caret-position="150">
126
+                  <caret line="10" column="25" selection-start-line="10" selection-start-column="25" selection-end-line="10" selection-end-column="25" />
127
+                  <folding>
128
+                    <element signature="e#209#210#0" expanded="true" />
129
+                  </folding>
130
+                </state>
131
+              </provider>
132
+            </entry>
133
+          </file>
134
+        </leaf>
135
+      </split-first>
136
+      <split-second>
137
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
138
+          <file pinned="false" current-in-tab="false">
139
+            <entry file="file://$PROJECT_DIR$/arraz/src/test/java/OddEvenTest.java">
140
+              <provider selected="true" editor-type-id="text-editor">
141
+                <state relative-caret-position="405">
142
+                  <caret line="27" column="15" lean-forward="true" selection-start-line="27" selection-start-column="15" selection-end-line="27" selection-end-column="15" />
143
+                  <folding>
144
+                    <element signature="imports" expanded="true" />
145
+                  </folding>
146
+                </state>
147
+              </provider>
148
+            </entry>
149
+          </file>
150
+          <file pinned="false" current-in-tab="false">
151
+            <entry file="file://$PROJECT_DIR$/arraz/src/test/java/MaxMinTest.java">
152
+              <provider selected="true" editor-type-id="text-editor">
153
+                <state relative-caret-position="480">
154
+                  <caret line="32" column="5" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" />
155
+                  <folding>
156
+                    <element signature="imports" expanded="true" />
157
+                  </folding>
158
+                </state>
159
+              </provider>
160
+            </entry>
161
+          </file>
162
+          <file pinned="false" current-in-tab="true">
163
+            <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
164
+              <provider selected="true" editor-type-id="text-editor">
165
+                <state relative-caret-position="645">
166
+                  <caret line="380" lean-forward="true" selection-start-line="380" selection-end-line="380" />
167
+                  <folding>
168
+                    <element signature="imports" expanded="true" />
169
+                  </folding>
170
+                </state>
171
+              </provider>
172
+            </entry>
173
+          </file>
174
+        </leaf>
175
+      </split-second>
176
+    </splitter>
62 177
   </component>
63 178
   <component name="FileTemplateManagerImpl">
64 179
     <option name="RECENT_TEMPLATES">
65 180
       <list>
66
-        <option value="Class" />
67 181
         <option value="JUnit4 Test Class" />
182
+        <option value="Class" />
68 183
       </list>
69 184
     </option>
70 185
   </component>
@@ -72,9 +187,6 @@
72 187
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73 188
   </component>
74 189
   <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78 190
     <option name="projectSyncType">
79 191
       <map>
80 192
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
@@ -84,13 +196,28 @@
84 196
   <component name="IdeDocumentHistory">
85 197
     <option name="CHANGED_PATHS">
86 198
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88 199
         <option value="$PROJECT_DIR$/README.md" />
200
+        <option value="$PROJECT_DIR$/arraz/src/test/java/Arraz/ArrazTest.java" />
201
+        <option value="$PROJECT_DIR$/arraz/src/test/java/OddEvenTest/OddEvenTest.java" />
202
+        <option value="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" />
203
+        <option value="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" />
204
+        <option value="$PROJECT_DIR$/arraz/src/test/java/OddEvenTest.java" />
205
+        <option value="$PROJECT_DIR$/arraz/src/test/java/MaxMin.java" />
206
+        <option value="$PROJECT_DIR$/arraz/src/test/java/MaxMinTest.java" />
207
+        <option value="$PROJECT_DIR$/arraz/pom.xml" />
208
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
209
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
89 210
       </list>
90 211
     </option>
91 212
   </component>
92 213
   <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
93 214
   <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
215
+  <component name="JsFlowSettings">
216
+    <service-enabled>true</service-enabled>
217
+    <exe-path />
218
+    <other-services-enabled>true</other-services-enabled>
219
+    <auto-save>true</auto-save>
220
+  </component>
94 221
   <component name="JsGulpfileManager">
95 222
     <detection-done>true</detection-done>
96 223
     <sorting>DEFINITION_ORDER</sorting>
@@ -102,27 +229,87 @@
102 229
       </MavenImportingSettings>
103 230
     </option>
104 231
   </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" />
232
+  <component name="ProjectFrameBounds" fullScreen="true">
233
+    <option name="x" value="-336" />
234
+    <option name="y" value="-1080" />
235
+    <option name="width" value="1920" />
236
+    <option name="height" value="1080" />
237
+  </component>
238
+  <component name="ProjectInspectionProfilesVisibleTreeState">
239
+    <entry key="Project Default">
240
+      <profile-state>
241
+        <expanded-state>
242
+          <State />
243
+          <State>
244
+            <id>Android</id>
245
+          </State>
246
+          <State>
247
+            <id>Class structureJava</id>
248
+          </State>
249
+          <State>
250
+            <id>Code style issuesJava</id>
251
+          </State>
252
+          <State>
253
+            <id>CorrectnessLintAndroid</id>
254
+          </State>
255
+          <State>
256
+            <id>Declaration redundancyJava</id>
257
+          </State>
258
+          <State>
259
+            <id>Inheritance issuesJava</id>
260
+          </State>
261
+          <State>
262
+            <id>Java</id>
263
+          </State>
264
+          <State>
265
+            <id>Java 10Java language level migration aidsJava</id>
266
+          </State>
267
+          <State>
268
+            <id>Java 12Java language level migration aidsJava</id>
269
+          </State>
270
+          <State>
271
+            <id>Java 5Java language level migration aidsJava</id>
272
+          </State>
273
+          <State>
274
+            <id>Java 7Java language level migration aidsJava</id>
275
+          </State>
276
+          <State>
277
+            <id>Java 8Java language level migration aidsJava</id>
278
+          </State>
279
+          <State>
280
+            <id>Java 9Java language level migration aidsJava</id>
281
+          </State>
282
+          <State>
283
+            <id>Java language level issuesJava</id>
284
+          </State>
285
+          <State>
286
+            <id>Java language level migration aidsJava</id>
287
+          </State>
288
+          <State>
289
+            <id>JavadocJava</id>
290
+          </State>
291
+          <State>
292
+            <id>LintAndroid</id>
293
+          </State>
294
+          <State>
295
+            <id>Modularization issuesJava</id>
296
+          </State>
297
+          <State>
298
+            <id>Numeric issuesJava</id>
299
+          </State>
300
+          <State>
301
+            <id>TypeScript</id>
302
+          </State>
303
+        </expanded-state>
304
+      </profile-state>
305
+    </entry>
110 306
   </component>
111 307
   <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 />
308
+    <navigator proportions="" version="1">
123 309
       <foldersAlwaysOnTop value="true" />
124 310
     </navigator>
125 311
     <panes>
312
+      <pane id="PackagesPane" />
126 313
       <pane id="ProjectPane">
127 314
         <subPane>
128 315
           <expand>
@@ -151,27 +338,51 @@
151 338
             <path>
152 339
               <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
153 340
               <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
341
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
342
+              <item name="src" type="462c0819:PsiDirectoryNode" />
343
+              <item name="main" type="462c0819:PsiDirectoryNode" />
344
+              <item name="java" type="462c0819:PsiDirectoryNode" />
345
+            </path>
346
+            <path>
347
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
348
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
349
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
350
+              <item name="src" type="462c0819:PsiDirectoryNode" />
351
+              <item name="test" type="462c0819:PsiDirectoryNode" />
352
+            </path>
353
+            <path>
354
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
355
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
356
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
357
+              <item name="src" type="462c0819:PsiDirectoryNode" />
358
+              <item name="test" type="462c0819:PsiDirectoryNode" />
359
+              <item name="java" type="462c0819:PsiDirectoryNode" />
360
+            </path>
361
+            <path>
362
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
363
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
154 364
               <item name="DocumentationOnArrays" type="462c0819:PsiDirectoryNode" />
155 365
             </path>
156 366
           </expand>
157 367
           <select />
158 368
         </subPane>
159 369
       </pane>
160
-      <pane id="Scratches" />
161
-      <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163 370
       <pane id="Scope" />
164 371
     </panes>
165 372
   </component>
166 373
   <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" />
374
+    <property name="GO_FMT" value="false" />
169 375
     <property name="WebServerToolWindowFactoryState" value="false" />
170 376
     <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" />
377
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544323467523" />
173 378
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
379
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
380
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
381
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
382
+    <property name="project.structure.last.edited" value="SDKs" />
383
+    <property name="project.structure.proportion" value="0.15" />
384
+    <property name="project.structure.side.proportion" value="0.2" />
385
+    <property name="settings.editor.selected.configurable" value="configurable.group.editor" />
175 386
   </component>
176 387
   <component name="RecentsManager">
177 388
     <key name="CreateTestDialog.RecentsKey">
@@ -193,90 +404,111 @@
193 404
       </list>
194 405
     </option>
195 406
   </component>
196
-  <component name="RunManager">
407
+  <component name="RunManager" selected="JUnit.ArrazTest">
197 408
     <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
200 409
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
410
+      <method v="2">
411
+        <option name="Make" enabled="true" />
412
+      </method>
202 413
     </configuration>
203 414
     <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 415
       <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 />
416
+      <method v="2">
417
+        <option name="Make" enabled="true" />
418
+      </method>
216 419
     </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" />
420
+    <configuration name="ArrazTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
421
+      <module name="arraz" />
422
+      <option name="PACKAGE_NAME" value="" />
423
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
228 424
       <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 />
425
+      <method v="2">
426
+        <option name="Make" enabled="true" />
427
+      </method>
236 428
     </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" />
429
+    <configuration name="ArrazTest.test1arrayHas65and77" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
430
+      <module name="arraz" />
431
+      <option name="PACKAGE_NAME" value="" />
432
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
433
+      <option name="METHOD_NAME" value="test1arrayHas65and77" />
434
+      <option name="TEST_OBJECT" value="method" />
435
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
436
+      <method v="2">
437
+        <option name="Make" enabled="true" />
438
+      </method>
439
+    </configuration>
440
+    <configuration name="ArrazTest.test1averageArrayWithoutMaxMin" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
441
+      <module name="arraz" />
442
+      <option name="PACKAGE_NAME" value="" />
443
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
444
+      <option name="METHOD_NAME" value="test1averageArrayWithoutMaxMin" />
445
+      <option name="TEST_OBJECT" value="method" />
446
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
447
+      <method v="2">
448
+        <option name="Make" enabled="true" />
449
+      </method>
450
+    </configuration>
451
+    <configuration name="ArrazTest.test1check2ArraysForEqual" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
452
+      <module name="arraz" />
453
+      <option name="PACKAGE_NAME" value="" />
454
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
455
+      <option name="METHOD_NAME" value="test1check2ArraysForEqual" />
456
+      <option name="TEST_OBJECT" value="method" />
457
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
458
+      <method v="2">
459
+        <option name="Make" enabled="true" />
460
+      </method>
461
+    </configuration>
462
+    <configuration name="ArrazTest.test2averageArrayWithoutMaxMin" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
463
+      <module name="arraz" />
464
+      <option name="PACKAGE_NAME" value="" />
465
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
466
+      <option name="METHOD_NAME" value="test2averageArrayWithoutMaxMin" />
467
+      <option name="TEST_OBJECT" value="method" />
468
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
469
+      <method v="2">
470
+        <option name="Make" enabled="true" />
471
+      </method>
472
+    </configuration>
473
+    <configuration default="true" type="JUnit" factoryName="JUnit">
474
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
475
+      <method v="2">
476
+        <option name="Make" enabled="true" />
477
+      </method>
243 478
     </configuration>
244 479
     <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 480
       <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 481
       <properties />
269 482
       <listeners />
483
+      <method v="2">
484
+        <option name="Make" enabled="true" />
485
+      </method>
270 486
     </configuration>
271 487
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
272 488
       <module name="" />
273 489
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274 490
       <option name="PROGRAM_PARAMETERS" />
275 491
       <predefined_log_file id="idea.log" enabled="true" />
492
+      <method v="2">
493
+        <option name="Make" enabled="true" />
494
+      </method>
276 495
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
496
+    <list>
497
+      <item itemvalue="JUnit.ArrazTest.test1check2ArraysForEqual" />
498
+      <item itemvalue="JUnit.ArrazTest" />
499
+      <item itemvalue="JUnit.ArrazTest.test1averageArrayWithoutMaxMin" />
500
+      <item itemvalue="JUnit.ArrazTest.test2averageArrayWithoutMaxMin" />
501
+      <item itemvalue="JUnit.ArrazTest.test1arrayHas65and77" />
502
+    </list>
503
+    <recent_temporary>
504
+      <list>
505
+        <item itemvalue="JUnit.ArrazTest" />
506
+        <item itemvalue="JUnit.ArrazTest.test1arrayHas65and77" />
507
+        <item itemvalue="JUnit.ArrazTest.test2averageArrayWithoutMaxMin" />
508
+        <item itemvalue="JUnit.ArrazTest.test1averageArrayWithoutMaxMin" />
509
+        <item itemvalue="JUnit.ArrazTest.test1check2ArraysForEqual" />
510
+      </list>
511
+    </recent_temporary>
280 512
   </component>
281 513
   <component name="SvnConfiguration">
282 514
     <configuration />
@@ -291,6 +523,8 @@
291 523
       <workItem from="1543955862749" duration="2347000" />
292 524
       <workItem from="1543958998826" duration="113000" />
293 525
       <workItem from="1544020724645" duration="762000" />
526
+      <workItem from="1544214768140" duration="29830000" />
527
+      <workItem from="1544304623235" duration="10064000" />
294 528
     </task>
295 529
     <task id="LOCAL-00001" summary="readme and docs">
296 530
       <created>1544021313039</created>
@@ -302,39 +536,74 @@
302 536
     <option name="localTasksCounter" value="2" />
303 537
     <servers />
304 538
   </component>
539
+  <component name="TestHistory">
540
+    <history-entry file="ArrazTest_test2check2ArraysForEqual - 2018.12.08 at 19h 14m 22s.xml">
541
+      <configuration name="ArrazTest.test2check2ArraysForEqual" configurationId="JUnit" />
542
+    </history-entry>
543
+    <history-entry file="ArrazTest_test1check2ArraysForEqual - 2018.12.08 at 19h 14m 25s.xml">
544
+      <configuration name="ArrazTest.test1check2ArraysForEqual" configurationId="JUnit" />
545
+    </history-entry>
546
+    <history-entry file="ArrazTest_test1averageArrayWithoutMaxMin - 2018.12.08 at 20h 02m 19s.xml">
547
+      <configuration name="ArrazTest.test1averageArrayWithoutMaxMin" configurationId="JUnit" />
548
+    </history-entry>
549
+    <history-entry file="ArrazTest_test2averageArrayWithoutMaxMin - 2018.12.08 at 21h 10m 02s.xml">
550
+      <configuration name="ArrazTest.test2averageArrayWithoutMaxMin" configurationId="JUnit" />
551
+    </history-entry>
552
+    <history-entry file="ArrazTest_test2averageArrayWithoutMaxMin - 2018.12.08 at 21h 10m 04s.xml">
553
+      <configuration name="ArrazTest.test2averageArrayWithoutMaxMin" configurationId="JUnit" />
554
+    </history-entry>
555
+    <history-entry file="ArrazTest - 2018.12.08 at 21h 10m 12s.xml">
556
+      <configuration name="ArrazTest" configurationId="JUnit" />
557
+    </history-entry>
558
+    <history-entry file="ArrazTest - 2018.12.08 at 21h 22m 11s.xml">
559
+      <configuration name="ArrazTest" configurationId="JUnit" />
560
+    </history-entry>
561
+    <history-entry file="ArrazTest_test1arrayHas65and77 - 2018.12.08 at 21h 36m 38s.xml">
562
+      <configuration name="ArrazTest.test1arrayHas65and77" configurationId="JUnit" />
563
+    </history-entry>
564
+    <history-entry file="ArrazTest_test1arrayHas65and77 - 2018.12.08 at 21h 37m 09s.xml">
565
+      <configuration name="ArrazTest.test1arrayHas65and77" configurationId="JUnit" />
566
+    </history-entry>
567
+    <history-entry file="ArrazTest_test1arrayHas65and77 - 2018.12.08 at 21h 38m 43s.xml">
568
+      <configuration name="ArrazTest.test1arrayHas65and77" configurationId="JUnit" />
569
+    </history-entry>
570
+  </component>
305 571
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
572
+    <option name="totallyTimeSpent" value="43116000" />
307 573
   </component>
308 574
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
575
+    <frame x="-336" y="-1080" width="1920" height="1080" extended-state="0" />
310 576
     <editor active="true" />
311 577
     <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" />
578
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.15761448" />
579
+      <window_info id="Structure" order="1" weight="0.24964234" />
580
+      <window_info id="Image Layers" order="2" />
581
+      <window_info id="Designer" order="3" />
582
+      <window_info id="UI Designer" order="4" />
583
+      <window_info id="Capture Tool" order="5" />
584
+      <window_info id="Favorites" order="6" side_tool="true" />
585
+      <window_info anchor="bottom" id="Message" order="0" />
586
+      <window_info anchor="bottom" id="Find" order="1" weight="0.3295562" />
587
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.23418319" />
588
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.39943343" />
589
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
590
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
591
+      <window_info anchor="bottom" id="TODO" order="6" />
592
+      <window_info anchor="bottom" id="Terminal" order="7" />
593
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
594
+      <window_info anchor="bottom" id="Version Control" order="9" />
595
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
596
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.3295562" />
597
+      <window_info anchor="right" id="Coverage" side_tool="true" weight="0.32960597" />
598
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
599
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
600
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
601
+      <window_info anchor="right" id="Palette" order="3" />
602
+      <window_info anchor="right" id="Capture Analysis" order="4" />
603
+      <window_info anchor="right" id="Theme Preview" order="5" />
604
+      <window_info anchor="right" id="Database" order="6" />
605
+      <window_info anchor="right" id="Palette&#9;" order="7" />
606
+      <window_info anchor="right" id="Maven Projects" order="8" />
338 607
     </layout>
339 608
   </component>
340 609
   <component name="TypeScriptGeneratedFilesManager">
@@ -347,119 +616,156 @@
347 616
     <MESSAGE value="readme and docs" />
348 617
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349 618
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354 619
   <component name="editorHistoryManager">
355
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
356
-      <provider selected="true" editor-type-id="text-editor">
357
-        <state relative-caret-position="0">
358
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
359
-          <folding />
360
-        </state>
361
-      </provider>
362
-    </entry>
363
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
620
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/OddEvenTest/OddEvenTest.java" />
621
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/org/junit/Assert.class">
364 622
       <provider selected="true" editor-type-id="text-editor">
365
-        <state relative-caret-position="0">
366
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
367
-          <folding />
368
-        </state>
369
-      </provider>
370
-    </entry>
371
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
372
-      <provider selected="true" editor-type-id="text-editor">
373
-        <state relative-caret-position="34">
374
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
375
-          <folding />
623
+        <state relative-caret-position="150">
624
+          <caret line="10" lean-forward="true" selection-start-line="10" selection-end-line="11" />
625
+          <folding>
626
+            <element signature="e#0#3097#0" expanded="true" />
627
+          </folding>
376 628
         </state>
377 629
       </provider>
378 630
     </entry>
631
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/MaxMin.java" />
379 632
     <entry file="file://$PROJECT_DIR$/README.md">
380 633
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
381 634
         <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 />
635
+          <first_editor relative-caret-position="270">
636
+            <caret line="18" selection-start-line="18" selection-end-line="18" />
385 637
           </first_editor>
386 638
           <second_editor />
387 639
         </state>
388 640
       </provider>
389 641
     </entry>
390
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
642
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
391 643
       <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 />
644
+        <state relative-caret-position="90">
645
+          <caret line="6" column="25" selection-start-line="6" selection-start-column="25" selection-end-line="6" selection-end-column="25" />
395 646
         </state>
396 647
       </provider>
397 648
     </entry>
398
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
649
+    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
399 650
       <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 />
651
+        <state relative-caret-position="450">
652
+          <caret line="30" column="6" lean-forward="true" selection-start-line="30" selection-start-column="6" selection-end-line="30" selection-end-column="6" />
403 653
         </state>
404 654
       </provider>
405 655
     </entry>
406
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
656
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/OddEvenTest.java">
407 657
       <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 />
658
+        <state relative-caret-position="405">
659
+          <caret line="27" column="15" lean-forward="true" selection-start-line="27" selection-start-column="15" selection-end-line="27" selection-end-column="15" />
660
+          <folding>
661
+            <element signature="imports" expanded="true" />
662
+          </folding>
411 663
         </state>
412 664
       </provider>
413 665
     </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 />
666
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/MaxMinTest.java">
667
+      <provider selected="true" editor-type-id="text-editor">
668
+        <state relative-caret-position="480">
669
+          <caret line="32" column="5" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" />
670
+          <folding>
671
+            <element signature="imports" expanded="true" />
672
+          </folding>
422 673
         </state>
423 674
       </provider>
424 675
     </entry>
425
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
676
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
426 677
       <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 />
678
+        <state relative-caret-position="150">
679
+          <caret line="10" column="25" selection-start-line="10" selection-start-column="25" selection-end-line="10" selection-end-column="25" />
680
+          <folding>
681
+            <element signature="e#209#210#0" expanded="true" />
682
+          </folding>
430 683
         </state>
431 684
       </provider>
432 685
     </entry>
433 686
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
434 687
       <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 />
688
+        <state relative-caret-position="711">
689
+          <caret line="201" lean-forward="true" selection-start-line="201" selection-end-line="201" />
690
+          <folding>
691
+            <element signature="imports" expanded="true" />
692
+          </folding>
438 693
         </state>
439 694
       </provider>
440 695
     </entry>
441 696
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
442 697
       <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 />
698
+        <state relative-caret-position="645">
699
+          <caret line="380" lean-forward="true" selection-start-line="380" selection-end-line="380" />
700
+          <folding>
701
+            <element signature="imports" expanded="true" />
702
+          </folding>
457 703
         </state>
458 704
       </provider>
459 705
     </entry>
460 706
   </component>
461 707
   <component name="masterDetails">
462 708
     <states>
709
+      <state key="ArtifactsStructureConfigurable.UI">
710
+        <settings>
711
+          <artifact-editor />
712
+          <splitter-proportions>
713
+            <option name="proportions">
714
+              <list>
715
+                <option value="0.2" />
716
+              </list>
717
+            </option>
718
+          </splitter-proportions>
719
+        </settings>
720
+      </state>
721
+      <state key="FacetStructureConfigurable.UI">
722
+        <settings>
723
+          <last-edited>No facets are configured</last-edited>
724
+          <splitter-proportions>
725
+            <option name="proportions">
726
+              <list>
727
+                <option value="0.2" />
728
+              </list>
729
+            </option>
730
+          </splitter-proportions>
731
+        </settings>
732
+      </state>
733
+      <state key="GlobalLibrariesConfigurable.UI">
734
+        <settings>
735
+          <splitter-proportions>
736
+            <option name="proportions">
737
+              <list>
738
+                <option value="0.2" />
739
+              </list>
740
+            </option>
741
+          </splitter-proportions>
742
+        </settings>
743
+      </state>
744
+      <state key="JdkListConfigurable.UI">
745
+        <settings>
746
+          <last-edited>1.8</last-edited>
747
+          <splitter-proportions>
748
+            <option name="proportions">
749
+              <list>
750
+                <option value="0.2" />
751
+              </list>
752
+            </option>
753
+          </splitter-proportions>
754
+        </settings>
755
+      </state>
756
+      <state key="ModuleStructureConfigurable.UI">
757
+        <settings>
758
+          <last-edited>ArraysGoneWild</last-edited>
759
+          <splitter-proportions>
760
+            <option name="proportions">
761
+              <list>
762
+                <option value="0.2" />
763
+                <option value="0.6" />
764
+              </list>
765
+            </option>
766
+          </splitter-proportions>
767
+        </settings>
768
+      </state>
463 769
       <state key="ProjectJDKs.UI">
464 770
         <settings>
465 771
           <last-edited>1.8</last-edited>
@@ -472,6 +778,18 @@
472 778
           </splitter-proportions>
473 779
         </settings>
474 780
       </state>
781
+      <state key="ProjectLibrariesConfigurable.UI">
782
+        <settings>
783
+          <last-edited>Maven: junit:junit:4.0</last-edited>
784
+          <splitter-proportions>
785
+            <option name="proportions">
786
+              <list>
787
+                <option value="0.2" />
788
+              </list>
789
+            </option>
790
+          </splitter-proportions>
791
+        </settings>
792
+      </state>
475 793
     </states>
476 794
   </component>
477 795
 </project>

+ 1
- 1
arraz/arraz.iml Näytä tiedosto

@@ -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_8">
4 4
     <output url="file://$MODULE_DIR$/target/classes" />
5 5
     <output-test url="file://$MODULE_DIR$/target/test-classes" />
6 6
     <content url="file://$MODULE_DIR$">

+ 12
- 0
arraz/pom.xml Näytä tiedosto

@@ -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>8</source>
17
+                    <target>8</target>
18
+                </configuration>
19
+            </plugin>
20
+        </plugins>
21
+    </build>
10 22
     <dependencies>
11 23
         <dependency>
12 24
             <groupId>junit</groupId>

+ 203
- 0
arraz/src/main/java/Arraz.java Näytä tiedosto

@@ -1,2 +1,205 @@
1
+import java.util.*;
2
+import java.util.stream.Stream;
3
+
1 4
 public class Arraz {
5
+
6
+
7
+    public Integer sumValuesOfArray(Integer[] nums) {
8
+        int sum = 0;
9
+        for (Integer i : nums) {
10
+            sum += i;
11
+        }
12
+        return sum;
13
+
14
+    }
15
+
16
+    public Double sumDoublesOfArray(Double[] nums) {
17
+        double sum = 0;
18
+        for (Double i : nums) {
19
+            sum += i;
20
+        }
21
+        return sum;
22
+    }
23
+
24
+
25
+    public Integer averageOfArray(Integer[] nums) {
26
+        Integer sum = 0;
27
+        for (Integer i : nums) {
28
+            sum += i;
29
+        }
30
+        return sum / nums.length;
31
+    }
32
+
33
+    public Double doubleAverageOfArray(Double[] nums) {
34
+        Double sum = 0.00;
35
+        for (Double i : nums) {
36
+            sum += i;
37
+        }
38
+        return sum / nums.length;
39
+    }
40
+
41
+    public Boolean containsValue(Double[] nums, Double value) {
42
+        for (Double i : nums)
43
+            if (i.equals(value))
44
+                return true;
45
+
46
+        return false;
47
+    }
48
+
49
+
50
+    public Integer[] reverseArray(Integer[] nums) {
51
+
52
+        Integer[] revArr = new Integer[nums.length];
53
+        int n = 0;
54
+
55
+        for (int i = nums.length - 1; i >= 0; i--) {
56
+            revArr[n++] = nums[i];
57
+
58
+        }
59
+
60
+        return revArr;
61
+    }
62
+
63
+
64
+    public OddEven oddEven(int[] nums) {
65
+        int odds = 0;
66
+        int evens = 0;
67
+
68
+        for (int i : nums) {
69
+            if (i % 2 == 0) {
70
+                evens++;
71
+            } else {
72
+                odds++;
73
+            }
74
+        }
75
+        OddEven oddEven = new OddEven(odds, evens);
76
+        return oddEven;
77
+    }
78
+
79
+
80
+    public int findIndexOf(int[] nums, int val) {
81
+        // int index = 0;
82
+
83
+        for (int i = 0; i < nums.length; i++)
84
+            if (nums[i] == val)
85
+                return i;
86
+
87
+        return -1;
88
+    }
89
+
90
+    public Integer[] copyArrayByIterator(Integer[] nums) {
91
+        List<Integer> numList = Arrays.asList(nums);
92
+        List<Integer> copyList = new ArrayList<>();
93
+
94
+        Iterator<Integer> iterator = numList.iterator();
95
+        while (iterator.hasNext()){
96
+            copyList.add(iterator.next());
97
+        }
98
+
99
+        return copyList.toArray(new Integer[0]);
100
+
101
+    }
102
+
103
+
104
+    public Integer[] copyArrayByLoop(Integer[] nums) {
105
+        Integer[] coppyNums = new Integer[nums.length];
106
+        int n = 0;
107
+
108
+        for(Integer i : nums){
109
+            coppyNums[n++] = i;
110
+        }
111
+        return coppyNums;
112
+    }
113
+
114
+    public Integer[] removeElementFromArray(Integer[] nums, Integer valToRemove) {
115
+
116
+        Integer[] newArr = new Integer[nums.length-1];
117
+        int n = 0;
118
+
119
+        for(Integer i : nums)
120
+            if(!i.equals(valToRemove))
121
+                newArr[n++] = i;
122
+
123
+        return newArr;
124
+    }
125
+
126
+    public Integer[] insertIntoArrayAt(Integer[] nums, Integer valToBeInserted, int indexToInsert) {
127
+        nums[indexToInsert] = valToBeInserted;
128
+        return nums;
129
+
130
+    }
131
+
132
+    public MaxMin findMaxMinOfArray(Integer[] nums) {
133
+        int max = 0;
134
+        int min = 0;
135
+
136
+        Arrays.sort(nums);
137
+        max = nums[nums.length-1];
138
+        min = nums[0];
139
+
140
+        return new MaxMin(max,min);
141
+
142
+
143
+    }
144
+
145
+    public Integer[] removeDupesFromArray(Integer[] nums) {
146
+
147
+       return Arrays.stream(nums)
148
+               .distinct()
149
+               .toArray(Integer[]::new);
150
+    }
151
+
152
+    public double find2ndLargestValueFromArray(Double[] nums) {
153
+        //Tree set removes duplicates and sorts the array from smallest to largest
154
+        TreeSet<Double> set = new TreeSet<>(Arrays.asList(nums));
155
+        //convert to arraylist
156
+        ArrayList<Double> list = new ArrayList<>(set);
157
+        //get the second largest.
158
+        return list.get(list.size() -2);
159
+    }
160
+
161
+    public Integer[] makeMeAnArrayFromArrayList(ArrayList<Integer> nums) {
162
+        return nums.toArray(new Integer[nums.size()]);
163
+
164
+
165
+    }
166
+
167
+
168
+    public boolean check2ArraysForEqual(int[] arr1, int[] arr2) {
169
+//        if(arr1.length !=arr2.length) return false;
170
+//
171
+//       for(int i = 0; i <arr1.length; i++)
172
+//           for(int j = 0; j < arr2.length; j++)
173
+//               if(arr1[i] == arr2[j])
174
+//                   return true;
175
+//
176
+//
177
+//
178
+//
179
+//    return false;
180
+
181
+        return Arrays.equals(arr1,arr2);
182
+    }
183
+
184
+    public int averageWithoutMaxMin(Integer[] numsArr) {
185
+        Arrays.sort(numsArr);
186
+        MaxMin maxMin = findMaxMinOfArray(numsArr);
187
+        Integer[] newNumsArr = removeElementFromArray(numsArr,maxMin.getMax());
188
+        newNumsArr = removeElementFromArray(newNumsArr,maxMin.getMin());
189
+
190
+        return averageOfArray(newNumsArr);
191
+
192
+    }
193
+
194
+
195
+    public boolean arrayHas65and77(Integer[] numsArr, Integer val65, Integer val77) {
196
+
197
+        boolean arrayHas65and77 = true;
198
+
199
+        for(int i = 0; i <numsArr.length;i++)
200
+            if(numsArr[i]==val65 && numsArr[i] == val77)
201
+                return  arrayHas65and77;
202
+
203
+            return false;
204
+    }
2 205
 }

+ 26
- 0
arraz/src/main/java/MaxMin.java Näytä tiedosto

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

+ 26
- 0
arraz/src/main/java/OddEven.java Näytä tiedosto

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

+ 381
- 0
arraz/src/test/java/ArrazTest.java Näytä tiedosto

@@ -1,5 +1,386 @@
1
+import oracle.jvm.hotspot.jfr.ThreadGroupEntry;
2
+import org.junit.Assert;
3
+import org.junit.Test;
4
+
5
+import java.lang.reflect.Array;
6
+import java.util.ArrayList;
7
+import java.util.Arrays;
8
+
1 9
 import static org.junit.Assert.*;
2 10
 
3 11
 public class ArrazTest {
12
+    Arraz arraz = new Arraz();
13
+
14
+    @Test
15
+    public void test1SumValuesOfArray() {
16
+        //Given
17
+        Arraz arrazClass = new Arraz();
18
+        Integer[] nums = {1, 2, 3};
19
+        //When
20
+        Integer expected = 6;
21
+        Integer actual = arrazClass.sumValuesOfArray(nums);
22
+        //Then
23
+        Assert.assertEquals(expected, actual);
24
+
25
+    }
26
+
27
+    @Test
28
+    public void test2SumValuesOfArray() {
29
+        //Given
30
+        Arraz arrazClass2 = new Arraz();
31
+        Integer[] nums2 = {1, 2,3, 3};
32
+        //When
33
+        Integer expected2 = 9;
34
+        Integer actual2 = arrazClass2.sumValuesOfArray(nums2);
35
+        //Then
36
+        Assert.assertEquals(expected2, actual2);
37
+
38
+
39
+    }
40
+
41
+    @Test
42
+    public void test1sumDoublesOfArray(){
43
+        //Given
44
+        Arraz arrazClass1 = new Arraz();
45
+        Double[] nums = {1.00,2.00,3.00};
46
+        //When
47
+        double expected = 6.00;
48
+        double actual = arrazClass1.sumDoublesOfArray(nums);
49
+        //Then
50
+        Assert.assertEquals(expected,actual);
51
+
52
+    }
53
+
54
+    @Test
55
+    public void test2sumValuesOfArray(){
56
+        //Given
57
+        Arraz arrazClass2 = new Arraz();
58
+        Double[] nums = {1.00,2.00,3.00,1.00};
59
+        //When
60
+        double expected2 = 7.00;
61
+        double actual2 = arrazClass2.sumDoublesOfArray(nums);
62
+        //Then
63
+        Assert.assertEquals(expected2,actual2);
64
+
65
+
66
+    }
67
+    @Test
68
+    public void test1averageOfArray(){
69
+        //Given
70
+        Arraz arrazClass1 = new Arraz();
71
+        Integer[] nums = {5,5};
72
+        //When
73
+        Integer expected = 5;
74
+        Integer actual = arrazClass1.averageOfArray(nums);
75
+        //Then
76
+        Assert.assertEquals(expected,actual);
77
+
78
+    }
79
+    @Test
80
+    public void test2averageOfArray(){
81
+        //Given
82
+        Arraz arraz  = new Arraz();
83
+        Integer[] nums = {3,3,3};
84
+        //When
85
+        Integer expected = 3;
86
+        Integer actual = arraz.averageOfArray(nums);
87
+        //
88
+        Assert.assertEquals(expected, actual);
89
+    }
90
+    @Test
91
+    public void test1doubleAverageOfArray(){
92
+        //Given
93
+        Arraz arraz = new Arraz();
94
+        Double[] nums = {3.25,2.45,1.00,4.55};
95
+        //When
96
+        Double expected = 2.8125;
97
+        Double actual = arraz.doubleAverageOfArray(nums);
98
+        //Then
99
+        Assert.assertEquals(expected,actual);
100
+
101
+    }
102
+    @Test
103
+    public void test2doubleAverageOfArray(){
104
+        //Given
105
+        Arraz arraz = new Arraz();
106
+        Double[] nums = {1.00,2.25, 3.25,3.44};
107
+        //Then
108
+        Double expected = 2.485;
109
+        Double actual = arraz.doubleAverageOfArray(nums);
110
+        //Then
111
+        Assert.assertEquals(expected,actual);
112
+    }
113
+    @Test
114
+    public void test1containsValue(){
115
+        //Given
116
+        Arraz arraz = new Arraz();
117
+        Double[] nums = {1.00,2.25, 3.25,3.44};
118
+        Double value = 1.00;
119
+        //When
120
+        Boolean actual = arraz.containsValue(nums,value);
121
+        //Then
122
+        Assert.assertTrue(actual);
123
+    }
124
+    @Test
125
+    public void test2containsValue(){
126
+        //Given
127
+        Arraz arraz = new Arraz();
128
+        Double[] nums = {1.00, 2.25, 3.25,4.567};
129
+        Double value = 4.568;
130
+        //When
131
+        Boolean actual = arraz.containsValue(nums,value);
132
+        //Then
133
+        Assert.assertFalse(actual);
134
+
135
+    }
136
+
137
+    @Test
138
+    public void test1reverseArray(){
139
+        //Given
140
+        Arraz arraz = new Arraz();
141
+        Integer[] nums = {1,2,3,4,5,6,7};
142
+        //When
143
+        Integer[] expected = {7,6,5,4,3,2,1};
144
+        Integer[] actual = arraz.reverseArray(nums);
145
+        //Then
146
+        Assert.assertEquals(expected,actual);
147
+
148
+    }
149
+    @Test
150
+    public void test2reverseArray(){
151
+        //Given
152
+        Integer[] nums ={10,11,12,13,14};
153
+        //When
154
+        Integer[] expected = {14,13,12,11,10};
155
+        Integer[] actual = arraz.reverseArray(nums);
156
+        //Then
157
+        Assert.assertEquals(expected,actual);
158
+
159
+    }
160
+    @Test
161
+    public void test1findIndexOf(){
162
+        //Given
163
+        int [] nums = {1,2,3,4,5,6};
164
+        int val = 2;
165
+        //When
166
+        int expectedIndex = 1;
167
+        int actualIndex = arraz.findIndexOf(nums,val);
168
+        //Then
169
+        Assert.assertEquals(expectedIndex,actualIndex);
170
+
171
+    }
172
+    @Test
173
+    public void test2findIndexOf(){
174
+        //Given
175
+        int[] nums = {1,2,3,4,5,6,7,8};
176
+        int val = 5;
177
+        //When
178
+        int expectedIndex = 4;
179
+        int actualIndex = arraz.findIndexOf(nums,val);
180
+        //Then
181
+        Assert.assertEquals(expectedIndex,actualIndex);
182
+    }
183
+    @Test
184
+    public void test1copyArrayByIterator (){
185
+        //Given
186
+        Integer[] nums = {1,2,3,4,5,6};
187
+        //When
188
+        Integer [] expectedNums = {1,2,3,4,5,6};
189
+        Integer [] actualNums = arraz.copyArrayByIterator(nums);
190
+        //Then
191
+        Assert.assertEquals(expectedNums,actualNums);
192
+
193
+    }
194
+    @Test
195
+    public void test2coppyArrayByIterator(){
196
+        //Given
197
+        Integer[] nums ={1,2};
198
+        //When
199
+        Integer[] expectedNums = {1,2};
200
+        Integer[] actualNums = arraz.copyArrayByIterator(nums);
201
+        //Then
202
+        Assert.assertEquals(expectedNums,actualNums);
203
+    }
204
+    @Test
205
+    public void test1copyArrayByLoop(){
206
+        //Given
207
+        Integer[] nums ={1,2};
208
+        //When
209
+        Integer[] expectedNums = {1,2};
210
+        Integer[] actualNums = arraz.copyArrayByLoop(nums);
211
+        //Then
212
+        Assert.assertEquals(expectedNums,actualNums);
213
+    }
214
+    @Test
215
+    public void test2copyArrayByLoop(){
216
+        //Given
217
+        Integer[] nums = {12,3,4,5,6,7};
218
+        //When
219
+        Integer[] expectedNums = {12,3,4,5,6,7};
220
+        Integer[] actualNums = arraz.copyArrayByLoop(nums);
221
+        //Then
222
+        Assert.assertEquals(expectedNums,actualNums);
223
+
224
+    }
225
+    @Test
226
+    public void test1removeElementFromArray() {
227
+        //Given
228
+        Integer[] nums = {1,2,3};
229
+        Integer valToRemove = 2;
230
+        //When
231
+        Integer[] expectedNums = {1,3};
232
+        Integer[] actualNums = arraz.removeElementFromArray(nums, valToRemove);
233
+        //Then
234
+        Assert.assertEquals(expectedNums,actualNums);
235
+    }
236
+    @Test
237
+    public void test2removeElementFromArray(){
238
+        //Given
239
+        Integer[] nums = {3,4,5,6,7,8,9};
240
+        Integer valToRemove = 9;
241
+        //When
242
+        Integer[] expectedNums = {3,4,5,6,7,8,};
243
+        Integer[] actualNums = arraz.removeElementFromArray(nums,valToRemove);
244
+        //Then
245
+        Assert.assertEquals(expectedNums,actualNums);
246
+    }
247
+    @Test
248
+    public void test1insertIntoArrayAt(){
249
+        //Given
250
+        Integer[] nums = {1,3,4,5,6};
251
+        Integer valToBeInserted = 4;
252
+        int indexToInsert = 3;
253
+        //When
254
+        Integer[] expectedNums = {1,3,4,4,6};
255
+        Integer[] actualNums = arraz.insertIntoArrayAt(nums,valToBeInserted,indexToInsert);
256
+        //Then
257
+        Assert.assertEquals(expectedNums,actualNums);
258
+
259
+    }
260
+    @Test
261
+    public void test2insertIntoArrayAt(){
262
+        //Given
263
+        Integer[] nums = {1,2};
264
+        Integer valToBeInserted = 22;
265
+        int indexToInsert = 0;
266
+        //When
267
+        Integer[] expectedNums = {22,2};
268
+        Integer[] actualNums = arraz.insertIntoArrayAt(nums,valToBeInserted,indexToInsert);
269
+    }
270
+    @Test
271
+    public  void test1removeDupesFromArray(){
272
+        //Given
273
+        Integer [] nums = {1,1,1,1,2,2,2,3,3,3,3};
274
+        //When
275
+        Integer[] expectedNums = {1,2,3};
276
+        Integer[] actualNums = arraz.removeDupesFromArray(nums);
277
+        //Then
278
+        Assert.assertEquals(expectedNums,actualNums);
279
+    }
280
+    @Test
281
+    public void test2removeDupesFromArray(){
282
+        //Given
283
+        Integer [] nums = {3,3,4,5,6,7,8,9,3};
284
+        //When
285
+        Integer[] expectedNums = {3,4,5,6,7,8,9};
286
+        Integer[] actualNums = arraz.removeDupesFromArray(nums);
287
+        //Then
288
+        Assert.assertEquals(expectedNums,actualNums);
289
+    }
290
+    @Test
291
+    public void test1find2ndLargestValueFromArray(){
292
+        //Given
293
+        Double[] nums = {9.25, 10.2334,10.2334,1.345678};
294
+        //When
295
+        double expected2ndLargestValue = 9.25;
296
+        double actual2ndLargestValue = arraz.find2ndLargestValueFromArray(nums);
297
+        //Then
298
+        Assert.assertEquals(expected2ndLargestValue,actual2ndLargestValue);
299
+    }
300
+    @Test
301
+    public void test2find2ndLargestValueFromArray(){
302
+        //Given
303
+        Double[] nums = {1.23, 1.23, 12.22, 123.33, 123.33};
304
+        //When
305
+        double expected2ndLargestValue = 12.22;
306
+        double actual2ndLargestValue = arraz.find2ndLargestValueFromArray(nums);
307
+        //Then
308
+        Assert.assertEquals(expected2ndLargestValue, actual2ndLargestValue);
309
+    }
310
+
311
+    @Test
312
+    public void test1makeMeAnArrayFromArrayList(){
313
+        //Given
314
+        ArrayList<Integer> nums = new ArrayList<>();
315
+        nums.add(0,1);
316
+        nums.add(1,2);
317
+        nums.add(2,3);
318
+        //When
319
+        Integer[] expectedArr = {1,2,3};
320
+        Integer[] actualArr = arraz.makeMeAnArrayFromArrayList(nums);
321
+        //Then
322
+        Assert.assertEquals(expectedArr,actualArr);
323
+    }
324
+    @Test
325
+    public void test2makeMeAnArrayFromArrayList(){
326
+        //Given
327
+        ArrayList<Integer> nums = new ArrayList<>();
328
+        nums.add(1);
329
+        nums.add(2);
330
+        nums.add(3);
331
+        //When
332
+        Integer[] expectedArr = {1,2,3};
333
+        Integer[] actualArr = arraz.makeMeAnArrayFromArrayList(nums);
334
+        //Then
335
+        Assert.assertEquals(expectedArr,actualArr);
336
+
337
+    }
338
+    @Test
339
+    public void test1check2ArraysForEqual(){
340
+        //Given
341
+        int[] arr1 = {1,2,3,4};
342
+        int[] arr2 = {1,2,3,4};
343
+        Assert.assertTrue(Arrays.equals(arr1,arr2));
344
+    }
345
+    @Test
346
+    public void test2check2ArraysForEqual() {
347
+        //Given
348
+        int[] arr1 = {1, 1, 4, 4};
349
+        int[] arr2 = {1, 2, 4, 4,2};
350
+        Assert.assertFalse(arraz.check2ArraysForEqual(arr1,arr2));
351
+    }
352
+    @Test
353
+    public void test1averageArrayWithoutMaxMin(){
354
+        //Given
355
+        Integer[] numsArr = {2,4,6,8};
356
+        //When
357
+        int expectedAverage = 5;
358
+        int actualAverage = arraz.averageWithoutMaxMin(numsArr);
359
+        //Then
360
+        Assert.assertEquals(expectedAverage,actualAverage);
361
+    }
362
+    @Test
363
+    public void test2averageArrayWithoutMaxMin(){
364
+        //Given
365
+        Integer[] numsArr = {8,4,2,6};
366
+        //When
367
+        int expectedAverage = 5;
368
+        int actualAverage = arraz.averageWithoutMaxMin(numsArr);
369
+        //Then
370
+        Assert.assertEquals(expectedAverage,actualAverage);
371
+    }
372
+    @Test
373
+    public void test1arrayHas65and77(){
374
+        //Given
375
+        Integer[] numsArr = {1,2,3,5,3,5,67,67};
376
+        Integer val65 = 65;
377
+        Integer val77 = 77;
378
+        //Then
379
+        Assert.assertTrue(arraz.arrayHas65and77(numsArr,val65,val77));
380
+
381
+
382
+    }
383
+
384
+
4 385
 
5 386
 }

+ 34
- 0
arraz/src/test/java/MaxMinTest.java Näytä tiedosto

@@ -0,0 +1,34 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+public class MaxMinTest {
5
+
6
+    Arraz arraz = new Arraz();
7
+
8
+    @Test
9
+    public void test1findMaxMinOfArray(){
10
+        //Given
11
+        Integer[] nums = {55,67,45,33,57,84,24,67};
12
+        //
13
+        int maxExpected = 84;
14
+        int minExpected = 24;
15
+        MaxMin maxMin = arraz.findMaxMinOfArray(nums);
16
+        //Then
17
+        Assert.assertEquals(maxExpected, maxMin.getMax());
18
+        Assert.assertEquals(minExpected, maxMin.getMin());
19
+    }
20
+
21
+    @Test
22
+    public void test2findMaxMinOfArray(){
23
+        //Given
24
+        Integer[] nums = {55,67,45,33,57,89,20,67};
25
+        //
26
+        int maxExpected = 89;
27
+        int minExpected = 20;
28
+        MaxMin maxMin = arraz.findMaxMinOfArray(nums);
29
+        //Then
30
+        Assert.assertEquals(maxExpected, maxMin.getMax());
31
+        Assert.assertEquals(minExpected, maxMin.getMin());
32
+
33
+    }
34
+}

+ 34
- 0
arraz/src/test/java/OddEvenTest.java Näytä tiedosto

@@ -0,0 +1,34 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
4
+public class OddEvenTest {
5
+    Arraz arraz = new Arraz();
6
+
7
+    @Test
8
+    public void test1OddEven(){
9
+        //Given
10
+        int [] nums = {2,2,5,5};
11
+        //When
12
+
13
+        int odds = 2;
14
+        int evens = 2;
15
+        OddEven oddEvenActual = arraz.oddEven(nums);
16
+        //Then
17
+        Assert.assertEquals(odds,oddEvenActual.getOdds());
18
+        Assert.assertEquals(evens,oddEvenActual.getEvens());
19
+
20
+    }
21
+    @Test
22
+    public void test2OddEven(){
23
+        //Given
24
+        int []  nums = {22,2,2,5,5};
25
+        //When
26
+        int oddsExpected = 2;
27
+        int evensExpected = 3;
28
+        OddEven oddEvenActual = arraz.oddEven(nums);
29
+        //Then
30
+        Assert.assertEquals(oddsExpected,oddEvenActual.getOdds());
31
+        Assert.assertEquals(evensExpected,oddEvenActual.getEvens());
32
+    }
33
+
34
+}