瀏覽代碼

up to maxmin

Trinh Tong 6 年之前
父節點
當前提交
eab008d7d0

+ 124
- 0
.idea/uiDesigner.xml 查看文件

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

+ 351
- 238
.idea/workspace.xml 查看文件

@@ -2,69 +2,111 @@
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/NumberUtils.java" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7 12
     </list>
8 13
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9 14
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
-    <option name="TRACKING_ENABLED" value="true" />
11 15
     <option name="SHOW_DIALOG" value="false" />
12 16
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
13 17
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14 18
     <option name="LAST_RESOLUTION" value="IGNORE" />
15 19
   </component>
20
+  <component name="FUSProjectUsageTrigger">
21
+    <session id="1769959352">
22
+      <usages-collector id="statistics.lifecycle.project">
23
+        <counts>
24
+          <entry key="project.open.time.1" value="1" />
25
+          <entry key="project.opened" value="1" />
26
+        </counts>
27
+      </usages-collector>
28
+      <usages-collector id="statistics.file.types.edit">
29
+        <counts>
30
+          <entry key="JAVA" value="5319" />
31
+        </counts>
32
+      </usages-collector>
33
+      <usages-collector id="statistics.file.types.open">
34
+        <counts>
35
+          <entry key="CLASS" value="1" />
36
+          <entry key="JAVA" value="7" />
37
+          <entry key="Markdown" value="1" />
38
+        </counts>
39
+      </usages-collector>
40
+    </session>
41
+  </component>
16 42
   <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>
43
+    <splitter split-orientation="horizontal" split-proportion="0.6340755">
44
+      <split-first>
45
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
46
+          <file pinned="false" current-in-tab="true">
47
+            <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
48
+              <provider selected="true" editor-type-id="text-editor">
49
+                <state relative-caret-position="257">
50
+                  <caret line="151" column="41" lean-forward="true" selection-start-line="151" selection-start-column="41" selection-end-line="151" selection-end-column="41" />
51
+                  <folding>
52
+                    <element signature="imports" expanded="true" />
53
+                    <element signature="e#2787#2788#0" expanded="true" />
54
+                    <element signature="e#2834#2835#0" expanded="true" />
55
+                  </folding>
56
+                </state>
57
+              </provider>
58
+            </entry>
59
+          </file>
60
+          <file pinned="false" current-in-tab="false">
61
+            <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
62
+              <provider selected="true" editor-type-id="text-editor">
63
+                <state relative-caret-position="40">
64
+                  <caret line="10" selection-start-line="10" selection-end-line="10" />
65
+                </state>
66
+              </provider>
67
+            </entry>
68
+          </file>
69
+          <file pinned="false" current-in-tab="false">
70
+            <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
71
+              <provider selected="true" editor-type-id="text-editor">
72
+                <state relative-caret-position="316">
73
+                  <caret line="196" column="4" selection-start-line="196" selection-start-column="4" selection-end-line="196" selection-end-column="4" />
74
+                  <folding>
75
+                    <element signature="imports" expanded="true" />
76
+                    <element signature="e#3089#3090#0" expanded="true" />
77
+                    <element signature="e#3119#3120#0" expanded="true" />
78
+                    <element signature="e#4817#4818#0" expanded="true" />
79
+                    <element signature="e#4906#4907#0" expanded="true" />
80
+                  </folding>
81
+                </state>
82
+              </provider>
83
+            </entry>
84
+          </file>
85
+        </leaf>
86
+      </split-first>
87
+      <split-second>
88
+        <leaf>
89
+          <file pinned="false" current-in-tab="true">
90
+            <entry file="file://$PROJECT_DIR$/README.md">
91
+              <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
92
+                <state split_layout="SECOND">
93
+                  <first_editor relative-caret-position="535">
94
+                    <caret line="84" selection-start-line="84" selection-end-line="84" selection-end-column="105" />
95
+                  </first_editor>
96
+                  <second_editor />
97
+                </state>
98
+              </provider>
99
+            </entry>
100
+          </file>
101
+        </leaf>
102
+      </split-second>
103
+    </splitter>
62 104
   </component>
63 105
   <component name="FileTemplateManagerImpl">
64 106
     <option name="RECENT_TEMPLATES">
65 107
       <list>
66
-        <option value="Class" />
67 108
         <option value="JUnit4 Test Class" />
109
+        <option value="Class" />
68 110
       </list>
69 111
     </option>
70 112
   </component>
@@ -72,9 +114,6 @@
72 114
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73 115
   </component>
74 116
   <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78 117
     <option name="projectSyncType">
79 118
       <map>
80 119
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
@@ -84,8 +123,14 @@
84 123
   <component name="IdeDocumentHistory">
85 124
     <option name="CHANGED_PATHS">
86 125
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88 126
         <option value="$PROJECT_DIR$/README.md" />
127
+        <option value="$PROJECT_DIR$/arraz/src/main/java/ArrazUtilities.java" />
128
+        <option value="$PROJECT_DIR$/arraz/src/main/java/NumIUtiils.java" />
129
+        <option value="$PROJECT_DIR$/arraz/src/main/java/NumberUtils.java" />
130
+        <option value="$PROJECT_DIR$/arraz/src/main/java/OddEven.java" />
131
+        <option value="$PROJECT_DIR$/arraz/src/main/java/MaxMin.java" />
132
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
133
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
89 134
       </list>
90 135
     </option>
91 136
   </component>
@@ -102,24 +147,13 @@
102 147
       </MavenImportingSettings>
103 148
     </option>
104 149
   </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" />
150
+  <component name="ProjectFrameBounds" extendedState="6">
151
+    <option name="y" value="23" />
152
+    <option name="width" value="1440" />
153
+    <option name="height" value="877" />
110 154
   </component>
111 155
   <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 />
156
+    <navigator proportions="" version="1">
123 157
       <foldersAlwaysOnTop value="true" />
124 158
     </navigator>
125 159
     <panes>
@@ -151,27 +185,35 @@
151 185
             <path>
152 186
               <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
153 187
               <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
188
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
189
+              <item name="src" type="462c0819:PsiDirectoryNode" />
190
+              <item name="main" type="462c0819:PsiDirectoryNode" />
191
+              <item name="java" type="462c0819:PsiDirectoryNode" />
192
+            </path>
193
+            <path>
194
+              <item name="ArraysGoneWild" type="b2602c69:ProjectViewProjectNode" />
195
+              <item name="ArraysGoneWild" type="462c0819:PsiDirectoryNode" />
154 196
               <item name="DocumentationOnArrays" type="462c0819:PsiDirectoryNode" />
155 197
             </path>
156 198
           </expand>
157 199
           <select />
158 200
         </subPane>
159 201
       </pane>
160
-      <pane id="Scratches" />
161
-      <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163 202
       <pane id="Scope" />
203
+      <pane id="PackagesPane" />
164 204
     </panes>
165 205
   </component>
166 206
   <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" />
207
+    <property name="GO_FMT" value="false" />
169 208
     <property name="WebServerToolWindowFactoryState" value="false" />
170 209
     <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" />
210
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544154666796" />
173 211
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
212
+    <property name="extract.method.default.visibility" value="private" />
213
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
214
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
215
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
216
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
175 217
   </component>
176 218
   <component name="RecentsManager">
177 219
     <key name="CreateTestDialog.RecentsKey">
@@ -193,90 +235,113 @@
193 235
       </list>
194 236
     </option>
195 237
   </component>
196
-  <component name="RunManager">
238
+  <component name="RunManager" selected="JUnit.ArrazTest.test2findMaxMindOfArray">
197 239
     <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
200 240
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
241
+      <method v="2">
242
+        <option name="Make" enabled="true" />
243
+      </method>
202 244
     </configuration>
203 245
     <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 246
       <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 />
247
+      <method v="2">
248
+        <option name="Make" enabled="true" />
249
+      </method>
216 250
     </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" />
251
+    <configuration name="ArrazTest.test1InsertIntoArrayAt" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
252
+      <module name="arraz" />
253
+      <option name="PACKAGE_NAME" value="" />
254
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
255
+      <option name="METHOD_NAME" value="test1InsertIntoArrayAt" />
256
+      <option name="TEST_OBJECT" value="method" />
228 257
       <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 />
258
+      <method v="2">
259
+        <option name="Make" enabled="true" />
260
+      </method>
236 261
     </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" />
262
+    <configuration name="ArrazTest.test1findMaxMinOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
263
+      <module name="arraz" />
264
+      <option name="PACKAGE_NAME" value="" />
265
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
266
+      <option name="METHOD_NAME" value="test1findMaxMinOfArray" />
267
+      <option name="TEST_OBJECT" value="method" />
268
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
269
+      <method v="2">
270
+        <option name="Make" enabled="true" />
271
+      </method>
272
+    </configuration>
273
+    <configuration name="ArrazTest.test1removeElementFromArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
274
+      <module name="arraz" />
275
+      <option name="PACKAGE_NAME" value="" />
276
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
277
+      <option name="METHOD_NAME" value="test1removeElementFromArray" />
278
+      <option name="TEST_OBJECT" value="method" />
279
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
280
+      <method v="2">
281
+        <option name="Make" enabled="true" />
282
+      </method>
283
+    </configuration>
284
+    <configuration name="ArrazTest.test2InsertIntoArrayAt" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
285
+      <module name="arraz" />
286
+      <option name="PACKAGE_NAME" value="" />
287
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
288
+      <option name="METHOD_NAME" value="test2InsertIntoArrayAt" />
289
+      <option name="TEST_OBJECT" value="method" />
290
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
291
+      <method v="2">
292
+        <option name="Make" enabled="true" />
293
+      </method>
294
+    </configuration>
295
+    <configuration name="ArrazTest.test2findMaxMindOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
296
+      <module name="arraz" />
297
+      <option name="PACKAGE_NAME" value="" />
298
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
299
+      <option name="METHOD_NAME" value="test2findMaxMindOfArray" />
300
+      <option name="TEST_OBJECT" value="method" />
301
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
302
+      <method v="2">
303
+        <option name="Make" enabled="true" />
304
+      </method>
305
+    </configuration>
306
+    <configuration default="true" type="JUnit" factoryName="JUnit">
307
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
308
+      <method v="2">
309
+        <option name="Make" enabled="true" />
310
+      </method>
243 311
     </configuration>
244 312
     <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 313
       <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 314
       <properties />
269 315
       <listeners />
316
+      <method v="2">
317
+        <option name="Make" enabled="true" />
318
+      </method>
270 319
     </configuration>
271 320
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
272 321
       <module name="" />
273 322
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274 323
       <option name="PROGRAM_PARAMETERS" />
275 324
       <predefined_log_file id="idea.log" enabled="true" />
325
+      <method v="2">
326
+        <option name="Make" enabled="true" />
327
+      </method>
276 328
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
329
+    <list>
330
+      <item itemvalue="JUnit.ArrazTest.test1removeElementFromArray" />
331
+      <item itemvalue="JUnit.ArrazTest.test1InsertIntoArrayAt" />
332
+      <item itemvalue="JUnit.ArrazTest.test2InsertIntoArrayAt" />
333
+      <item itemvalue="JUnit.ArrazTest.test1findMaxMinOfArray" />
334
+      <item itemvalue="JUnit.ArrazTest.test2findMaxMindOfArray" />
335
+    </list>
336
+    <recent_temporary>
337
+      <list>
338
+        <item itemvalue="JUnit.ArrazTest.test2findMaxMindOfArray" />
339
+        <item itemvalue="JUnit.ArrazTest.test1findMaxMinOfArray" />
340
+        <item itemvalue="JUnit.ArrazTest.test2InsertIntoArrayAt" />
341
+        <item itemvalue="JUnit.ArrazTest.test1InsertIntoArrayAt" />
342
+        <item itemvalue="JUnit.ArrazTest.test1removeElementFromArray" />
343
+      </list>
344
+    </recent_temporary>
280 345
   </component>
281 346
   <component name="SvnConfiguration">
282 347
     <configuration />
@@ -291,6 +356,7 @@
291 356
       <workItem from="1543955862749" duration="2347000" />
292 357
       <workItem from="1543958998826" duration="113000" />
293 358
       <workItem from="1544020724645" duration="762000" />
359
+      <workItem from="1544143319002" duration="9951000" />
294 360
     </task>
295 361
     <task id="LOCAL-00001" summary="readme and docs">
296 362
       <created>1544021313039</created>
@@ -302,40 +368,104 @@
302 368
     <option name="localTasksCounter" value="2" />
303 369
     <servers />
304 370
   </component>
371
+  <component name="TestHistory">
372
+    <history-entry file="ArrazTest_test1removeElementFromArray - 2018.12.06 at 22h 32m 14s.xml">
373
+      <configuration name="ArrazTest.test1removeElementFromArray" configurationId="JUnit" />
374
+    </history-entry>
375
+    <history-entry file="ArrazTest_test2RemoveElementFromArray - 2018.12.06 at 22h 32m 55s.xml">
376
+      <configuration name="ArrazTest.test2RemoveElementFromArray" configurationId="JUnit" />
377
+    </history-entry>
378
+    <history-entry file="ArrazTest_test1removeElementFromArray - 2018.12.06 at 22h 34m 36s.xml">
379
+      <configuration name="ArrazTest.test1removeElementFromArray" configurationId="JUnit" />
380
+    </history-entry>
381
+    <history-entry file="ArrazTest_test1InsertIntoArrayAt - 2018.12.06 at 22h 41m 58s.xml">
382
+      <configuration name="ArrazTest.test1InsertIntoArrayAt" configurationId="JUnit" />
383
+    </history-entry>
384
+    <history-entry file="ArrazTest_test2InsertIntoArrayAt - 2018.12.06 at 22h 43m 33s.xml">
385
+      <configuration name="ArrazTest.test2InsertIntoArrayAt" configurationId="JUnit" />
386
+    </history-entry>
387
+    <history-entry file="ArrazTest_test1findMaxMinOfArray - 2018.12.06 at 22h 49m 18s.xml">
388
+      <configuration name="ArrazTest.test1findMaxMinOfArray" configurationId="JUnit" />
389
+    </history-entry>
390
+    <history-entry file="ArrazTest_test1findMaxMinOfArray - 2018.12.06 at 22h 49m 31s.xml">
391
+      <configuration name="ArrazTest.test1findMaxMinOfArray" configurationId="JUnit" />
392
+    </history-entry>
393
+    <history-entry file="ArrazTest_test2findMaxMindOfArray - 2018.12.06 at 22h 50m 12s.xml">
394
+      <configuration name="ArrazTest.test2findMaxMindOfArray" configurationId="JUnit" />
395
+    </history-entry>
396
+    <history-entry file="ArrazTest_test2findMaxMindOfArray - 2018.12.06 at 22h 50m 54s.xml">
397
+      <configuration name="ArrazTest.test2findMaxMindOfArray" configurationId="JUnit" />
398
+    </history-entry>
399
+    <history-entry file="ArrazTest_test2findMaxMindOfArray - 2018.12.06 at 22h 51m 09s.xml">
400
+      <configuration name="ArrazTest.test2findMaxMindOfArray" configurationId="JUnit" />
401
+    </history-entry>
402
+  </component>
305 403
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
404
+    <option name="totallyTimeSpent" value="13173000" />
307 405
   </component>
308 406
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
407
+    <frame x="0" y="23" width="1440" height="877" extended-state="6" />
310 408
     <editor active="true" />
311 409
     <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" />
410
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.26108727" />
411
+      <window_info id="Structure" order="1" weight="0.25" />
412
+      <window_info id="Image Layers" order="2" />
413
+      <window_info id="Designer" order="3" />
414
+      <window_info id="UI Designer" order="4" />
415
+      <window_info id="Capture Tool" order="5" />
416
+      <window_info id="Favorites" order="6" side_tool="true" />
417
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
418
+      <window_info anchor="bottom" id="Messages" weight="0.32769832" />
419
+      <window_info anchor="bottom" id="Message" order="0" />
420
+      <window_info anchor="bottom" id="Find" order="1" />
421
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32769832" />
422
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.39921975" />
423
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
424
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
425
+      <window_info anchor="bottom" id="TODO" order="6" />
426
+      <window_info anchor="bottom" id="Terminal" order="7" />
427
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
428
+      <window_info anchor="bottom" id="Version Control" order="9" />
429
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
430
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
431
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
432
+      <window_info anchor="right" id="Palette" order="3" />
433
+      <window_info anchor="right" id="Capture Analysis" order="4" />
434
+      <window_info anchor="right" id="Theme Preview" order="5" />
435
+      <window_info anchor="right" id="Database" order="6" />
436
+      <window_info anchor="right" id="Palette&#9;" order="7" />
437
+      <window_info anchor="right" id="Maven Projects" order="8" />
338 438
     </layout>
439
+    <layout-to-restore>
440
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.26108727" />
441
+      <window_info id="Structure" order="1" weight="0.25" />
442
+      <window_info id="Image Layers" order="2" />
443
+      <window_info id="Designer" order="3" />
444
+      <window_info id="UI Designer" order="4" />
445
+      <window_info id="Capture Tool" order="5" />
446
+      <window_info id="Favorites" order="6" side_tool="true" />
447
+      <window_info anchor="bottom" id="Messages" order="0" weight="0.32769832" />
448
+      <window_info anchor="bottom" id="Database Changes" order="1" show_stripe_button="false" />
449
+      <window_info anchor="bottom" id="Message" order="2" />
450
+      <window_info anchor="bottom" id="Find" order="3" />
451
+      <window_info active="true" anchor="bottom" id="Run" order="4" visible="true" weight="0.32769832" />
452
+      <window_info anchor="bottom" id="Debug" order="5" weight="0.39921975" />
453
+      <window_info anchor="bottom" id="Cvs" order="6" weight="0.25" />
454
+      <window_info anchor="bottom" id="Inspection" order="7" weight="0.4" />
455
+      <window_info anchor="bottom" id="TODO" order="8" />
456
+      <window_info anchor="bottom" id="Terminal" order="9" />
457
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
458
+      <window_info anchor="bottom" id="Version Control" order="11" />
459
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
460
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
461
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
462
+      <window_info anchor="right" id="Palette" order="3" />
463
+      <window_info anchor="right" id="Capture Analysis" order="4" />
464
+      <window_info anchor="right" id="Theme Preview" order="5" />
465
+      <window_info anchor="right" id="Database" order="6" />
466
+      <window_info anchor="right" id="Palette&#9;" order="7" />
467
+      <window_info anchor="right" id="Maven Projects" order="8" />
468
+    </layout-to-restore>
339 469
   </component>
340 470
   <component name="TypeScriptGeneratedFilesManager">
341 471
     <option name="version" value="1" />
@@ -347,113 +477,96 @@
347 477
     <MESSAGE value="readme and docs" />
348 478
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349 479
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354 480
   <component name="editorHistoryManager">
355 481
     <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>
482
+      <provider selected="true" editor-type-id="text-editor" />
362 483
     </entry>
363
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
484
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/src.zip!/java/lang/Number.java">
364 485
       <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 />
486
+        <state relative-caret-position="-279">
487
+          <caret line="54" column="22" selection-start-line="54" selection-start-column="22" selection-end-line="54" selection-end-column="22" />
368 488
         </state>
369 489
       </provider>
370 490
     </entry>
371
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
491
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/ArrazUtilities.java">
372 492
       <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 />
493
+        <state relative-caret-position="270">
494
+          <caret line="12" column="5" lean-forward="true" selection-start-line="12" selection-start-column="5" selection-end-line="12" selection-end-column="5" />
495
+          <folding>
496
+            <element signature="e#79#80#0" expanded="true" />
497
+            <element signature="e#108#109#0" expanded="true" />
498
+          </folding>
376 499
         </state>
377 500
       </provider>
378 501
     </entry>
379
-    <entry file="file://$PROJECT_DIR$/README.md">
380
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
381
-        <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 />
385
-          </first_editor>
386
-          <second_editor />
387
-        </state>
388
-      </provider>
389
-    </entry>
390
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
502
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/org/junit/Assert.class">
391 503
       <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 />
504
+        <state relative-caret-position="368">
505
+          <caret line="19" selection-start-line="19" selection-end-line="19" />
506
+          <folding>
507
+            <element signature="e#426#427#0" expanded="true" />
508
+          </folding>
395 509
         </state>
396 510
       </provider>
397 511
     </entry>
398
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
512
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/NumberUtils.java">
399 513
       <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 />
403
-        </state>
404
-      </provider>
405
-    </entry>
406
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
407
-      <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 />
514
+        <state>
515
+          <caret column="16" lean-forward="true" selection-start-column="16" selection-end-column="16" />
516
+          <folding>
517
+            <element signature="e#70#71#0" expanded="true" />
518
+            <element signature="e#94#95#0" expanded="true" />
519
+          </folding>
411 520
         </state>
412 521
       </provider>
413 522
     </entry>
414 523
     <entry file="file://$PROJECT_DIR$/README.md">
415 524
       <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 />
525
+        <state split_layout="SECOND">
526
+          <first_editor relative-caret-position="535">
527
+            <caret line="84" selection-start-line="84" selection-end-line="84" selection-end-column="105" />
420 528
           </first_editor>
421 529
           <second_editor />
422 530
         </state>
423 531
       </provider>
424 532
     </entry>
425
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
533
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/OddEven.java">
426 534
       <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 />
535
+        <state relative-caret-position="368">
536
+          <caret line="21" column="21" lean-forward="true" selection-start-line="21" selection-start-column="21" selection-end-line="21" selection-end-column="21" />
430 537
         </state>
431 538
       </provider>
432 539
     </entry>
433
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
540
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
434 541
       <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 />
542
+        <state relative-caret-position="316">
543
+          <caret line="196" column="4" selection-start-line="196" selection-start-column="4" selection-end-line="196" selection-end-column="4" />
544
+          <folding>
545
+            <element signature="imports" expanded="true" />
546
+            <element signature="e#3089#3090#0" expanded="true" />
547
+            <element signature="e#3119#3120#0" expanded="true" />
548
+            <element signature="e#4817#4818#0" expanded="true" />
549
+            <element signature="e#4906#4907#0" expanded="true" />
550
+          </folding>
438 551
         </state>
439 552
       </provider>
440 553
     </entry>
441
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
554
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/MaxMin.java">
442 555
       <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 />
556
+        <state relative-caret-position="40">
557
+          <caret line="10" selection-start-line="10" selection-end-line="10" />
446 558
         </state>
447 559
       </provider>
448 560
     </entry>
449
-    <entry file="file://$PROJECT_DIR$/README.md">
450
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
451
-        <state split_layout="SPLIT">
452
-          <first_editor relative-caret-position="306">
453
-            <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
454
-            <folding />
455
-          </first_editor>
456
-          <second_editor />
561
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
562
+      <provider selected="true" editor-type-id="text-editor">
563
+        <state relative-caret-position="257">
564
+          <caret line="151" column="41" lean-forward="true" selection-start-line="151" selection-start-column="41" selection-end-line="151" selection-end-column="41" />
565
+          <folding>
566
+            <element signature="imports" expanded="true" />
567
+            <element signature="e#2787#2788#0" expanded="true" />
568
+            <element signature="e#2834#2835#0" expanded="true" />
569
+          </folding>
457 570
         </state>
458 571
       </provider>
459 572
     </entry>

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

@@ -1,2 +1,164 @@
1
+import java.util.Arrays;
2
+import java.util.Iterator;
3
+
1 4
 public class Arraz {
5
+
6
+    public static Integer sumValuesOfArray(Integer[] arr) {
7
+        int sum = 0;
8
+        for (int i = 0; i < arr.length; i++) {
9
+            sum += arr[i];
10
+        }
11
+        return sum;
12
+    }
13
+
14
+    public static double sumDoublesOfArray(double[] arr) {
15
+        double sum = 0.0;
16
+        for (int i = 0; i < arr.length; i++) {
17
+            sum += arr[i];
18
+        }
19
+        return sum;
20
+    }
21
+
22
+    public static Integer averageOfArray(Integer[] ints) {
23
+        try {
24
+            return (sumValuesOfArray(ints) / ints.length);
25
+        } catch (ArithmeticException divideByZero) {
26
+            return 0;
27
+        }
28
+    }
29
+
30
+    public static double doubleAverageOfArray(double[] doubles) {
31
+        return (sumDoublesOfArray(doubles) / doubles.length);
32
+    }
33
+
34
+
35
+    public static boolean containsValue(Integer[] ints, int val) {
36
+
37
+        for (int i : ints) {
38
+            if (i == val) {
39
+                return true;
40
+            }
41
+        }
42
+
43
+        return false;
44
+    }
45
+
46
+    public static Integer[] reverseArray(Integer[] ints2) {
47
+        Integer[] ints = new Integer[ints2.length];
48
+        int count = 0;
49
+        for (int i = ints2.length - 1; i >= 0; i--) {
50
+            ints[count] = ints2[i];
51
+            count++;
52
+        }
53
+        return ints;
54
+    }
55
+
56
+    public static OddEven getOddEvensOfArray(Integer[] arr) {
57
+        OddEven oe = new OddEven();
58
+        for (int i : arr) {
59
+            if (NumberUtils.isOdd(i)) {
60
+                oe.incrementOdd();
61
+            } else {
62
+                oe.incrementEven();
63
+            }
64
+        }
65
+        return oe;
66
+    }
67
+
68
+    public static Integer findIndexOf(Integer[] ints, Integer valueToFind) {
69
+        for (int i = 0; i < ints.length; i++) {
70
+            if (ints[i] == valueToFind) {
71
+                return i;
72
+            }
73
+        }
74
+
75
+        return -1;
76
+    }
77
+
78
+    public static Integer[] copyArrayByInterator(Integer[] arr) {
79
+        Integer[] arr2 = new Integer[arr.length];
80
+        Iterator interator = Arrays.asList(arr).listIterator();
81
+        int i = 0;
82
+        while (interator.hasNext()) {
83
+            arr2[i++] = (Integer) interator.next();
84
+        }
85
+
86
+        return arr2;
87
+    }
88
+
89
+    public static Integer[] copyArrayByLoop(Integer[] intToCopy) {
90
+        Integer[] loopArray = new Integer[intToCopy.length];
91
+
92
+        for (int i = 0; i < intToCopy.length; i++) {
93
+            loopArray[i] = intToCopy[i];
94
+        }
95
+
96
+        return loopArray;
97
+    }
98
+
99
+
100
+    private static int countElements(Integer[] ints2, int i) {
101
+        int count = 0;
102
+        for (int j = 0; j < ints2.length; j++) {
103
+            if (ints2[j] == i) {
104
+                count++;
105
+            }
106
+        }
107
+        return (count > 0) ? count : -1;
108
+    }
109
+
110
+    private static boolean isCountNegative(int count) {
111
+        return count < 0;
112
+    }
113
+
114
+    public static Integer[] removeElementFromArray(Integer[] ints2, int i) {
115
+        int count = countElements(ints2, i);
116
+        if (!isCountNegative(count)) {
117
+            return getIntegers(ints2, i, count);
118
+        }
119
+        return ints2;
120
+    }
121
+
122
+    private static Integer[] getIntegers(Integer[] ints2, int i, int count) {
123
+        Integer[] arr = new Integer[ints2.length - count];
124
+        int indexArr = 0;
125
+        for (Integer anInts2 : ints2) {
126
+            if (anInts2 != i) {
127
+                arr[indexArr++] = anInts2;
128
+            }
129
+        }
130
+        return arr;
131
+    }
132
+
133
+    public static Integer[] insertIntoArrayAt(Integer[] ints, int index, Integer value) {
134
+        if (!(index > ints.length)) {
135
+            ints[index] = value;
136
+            return ints;
137
+        }
138
+
139
+        return ints;
140
+    }
141
+
142
+    public static MaxMin findMaxMinOfArray(Integer[] arr) {
143
+        MaxMin maxMin = new MaxMin();
144
+
145
+        int max = Integer.MIN_VALUE;
146
+        int min = Integer.MAX_VALUE;
147
+
148
+        for (Integer anArr : arr) {
149
+            if (anArr != null) {
150
+                if (anArr < min) {
151
+                    min = anArr;
152
+                } else if (anArr > max) {
153
+                    max = anArr;
154
+                }
155
+            }
156
+        }
157
+
158
+        maxMin.setMax(max);
159
+        maxMin.setMin(min);
160
+
161
+        return maxMin;
162
+    }
2 163
 }
164
+

+ 31
- 0
arraz/src/main/java/MaxMin.java 查看文件

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

+ 6
- 0
arraz/src/main/java/NumberUtils.java 查看文件

@@ -0,0 +1,6 @@
1
+public class NumberUtils {
2
+
3
+    public static boolean isOdd(int x) {
4
+        return (x % 2 != 0);
5
+    }
6
+}

+ 36
- 0
arraz/src/main/java/OddEven.java 查看文件

@@ -0,0 +1,36 @@
1
+public class OddEven{
2
+    public int odds = 0;
3
+    public int evens = 0;
4
+
5
+    public OddEven(int odds, int evens) {
6
+        this.odds = odds;
7
+        this.evens = evens;
8
+    }
9
+
10
+    public OddEven() {
11
+    }
12
+
13
+    public int getOdds() {
14
+        return odds;
15
+    }
16
+
17
+    public void setOdds(int odds) {
18
+        this.odds = odds;
19
+    }
20
+
21
+    public int getEvens() {
22
+        return evens;
23
+    }
24
+
25
+    public void setEvens(int evens) {
26
+        this.evens = evens;
27
+    }
28
+
29
+    public void incrementOdd() {
30
+        setOdds(getOdds() + 1);
31
+    }
32
+
33
+    public void incrementEven() {
34
+        setEvens(getEvens() + 1);
35
+    }
36
+}

+ 193
- 0
arraz/src/test/java/ArrazTest.java 查看文件

@@ -1,5 +1,198 @@
1
+import org.junit.Test;
2
+
3
+import java.util.Arrays;
4
+
5
+import static java.lang.Double.NaN;
1 6
 import static org.junit.Assert.*;
2 7
 
3 8
 public class ArrazTest {
4 9
 
10
+    private Integer[] ints = new Integer[] {4,5,102,6,-7,12,-32,92,8};
11
+    private Integer[] ints2 = new Integer[] {6,10,31};
12
+    private double[] doubles = new double[] {1.0, 0.5, 3.6, 38.4, 17.3, 62.0, 9.0, 3.375, 0.0, 3.14159};
13
+    private double[] doubles2 = new double[] {1.5, 2.6, 10.6, -32.4, 2.0, -5.23, -0.1, 5.73, 1.03, 95.1413};
14
+    private final Double DELTA = 0.0;
15
+
16
+    @Test
17
+    public void test1SumOfArray() {
18
+        int expected = 190;
19
+        assertEquals(expected, Arraz.sumValuesOfArray(ints));
20
+    }
21
+
22
+    @Test
23
+    public void test2SumOfArray() {
24
+        int expected = 47;
25
+        assertEquals(expected, Arraz.sumValuesOfArray(ints2));
26
+    }
27
+
28
+    @Test
29
+    public void test1SumOfArrayDbl() {
30
+        Double expected = 138.31659000000002;
31
+        assertEquals(expected, Arraz.sumDoublesOfArray(doubles));
32
+    }
33
+
34
+    @Test
35
+    public void test2SumOfArrayDbl() {
36
+        Double expected = 80.8713;
37
+        assertEquals(expected, Arraz.sumDoublesOfArray(doubles2));
38
+    }
39
+
40
+    @Test
41
+    public void test1AverageOfArray() {
42
+        int expAvg = 21;
43
+        assertEquals(expAvg, Arraz.averageOfArray(ints));
44
+    }
45
+
46
+    @Test
47
+    public void test2AverageOfArray() {
48
+        Integer[] zeroArray = {};
49
+        assertEquals(0, Arraz.averageOfArray(zeroArray));
50
+    }
51
+
52
+    @Test
53
+    public void test1doubleAverageOfArray() {
54
+        double expAvg = 13.831659000000002;
55
+        assertEquals(expAvg, Arraz.doubleAverageOfArray(doubles));
56
+    }
57
+
58
+    @Test
59
+    public void test2doubleAverageOfArray() {
60
+        double[] zero = {};
61
+        assertEquals(NaN, Arraz.doubleAverageOfArray(zero) );
62
+    }
63
+
64
+    @Test
65
+    public void test1containsValue() {
66
+        int val = 12;
67
+        assertTrue(Arraz.containsValue(ints, val));
68
+    }
69
+
70
+    @Test
71
+    public void test2ContainsValue() {
72
+        int val = 0;
73
+        assertFalse(Arraz.containsValue(ints, val));
74
+    }
75
+
76
+    @Test
77
+    public void test1reverseArray() {
78
+        Integer[] expected = {31, 10, 6};
79
+        assertTrue(Arrays.equals(expected, Arraz.reverseArray(ints2)));
80
+    }
81
+
82
+    @Test
83
+    public void test2reverseArray() {
84
+        Integer[] expected = {1};
85
+        assertTrue(Arrays.equals(expected, Arraz.reverseArray(expected)));
86
+    }
87
+
88
+    @Test
89
+    public void test1OddsEvenOfArray() {
90
+        int expectedEven = 7;
91
+        int expectedOdd = 2;
92
+
93
+        OddEven oe = Arraz.getOddEvensOfArray(ints);
94
+        assertEquals(expectedEven, oe.getEvens());
95
+        assertEquals(expectedOdd, oe.getOdds());
96
+    }
97
+
98
+    @Test
99
+    public void test2OddsEvenOfArray() {
100
+        int expectedEven = 2;
101
+        int expectedOdd = 1;
102
+
103
+        OddEven oe = Arraz.getOddEvensOfArray(ints2);
104
+        assertEquals(expectedEven, oe.getEvens());
105
+        assertEquals(expectedOdd, oe.getOdds());
106
+    }
107
+
108
+    @Test
109
+    public void test1FindIndexOf() {
110
+        int expected = 2;
111
+        int valueToFind = 102;
112
+
113
+        assertEquals(expected, Arraz.findIndexOf(ints, valueToFind));
114
+    }
115
+
116
+    @Test
117
+    public void test2FindIndexOf() {
118
+        assertEquals(-1, Arraz.findIndexOf(ints2, 100));
119
+    }
120
+
121
+    @Test
122
+    public void test1CopyArrayByIterator() {
123
+        Integer[] intToCopy = new Integer[] {6,10,31};
124
+        Integer[] copy = Arraz.copyArrayByInterator(intToCopy);
125
+
126
+        assertTrue(Arrays.equals(intToCopy, copy));
127
+    }
128
+
129
+    @Test
130
+    public void test2CopyArrayByIterator() {
131
+        Integer[] intToCopy = new Integer[] {};
132
+        Integer[] copy = Arraz.copyArrayByInterator(intToCopy);
133
+
134
+        assertTrue(Arrays.equals(intToCopy, copy));
135
+    }
136
+
137
+    @Test
138
+    public void test1CopyArrayByLoop() {
139
+        Integer[] intToCopy = new Integer[] {};
140
+        Integer[] copy = Arraz.copyArrayByLoop(intToCopy);
141
+
142
+        assertTrue(Arrays.equals(intToCopy, copy));
143
+    }
144
+
145
+    @Test
146
+    public void test2CopyArrayByLoop() {
147
+        Integer[] intToCopy = new Integer[] {};
148
+        Integer[] copy = Arraz.copyArrayByLoop(intToCopy);
149
+
150
+        assertTrue(Arrays.equals(intToCopy, copy));
151
+    }
152
+
153
+    @Test
154
+    public void test1removeElementFromArray() {
155
+        Integer[] ints2remove6 = new Integer[] {10,31};
156
+        Integer[] actual = Arraz.removeElementFromArray(ints2, 6);
157
+
158
+        assertTrue(Arrays.equals(ints2remove6, actual));
159
+    }
160
+
161
+    @Test
162
+    public void test2RemoveElementFromArray() {
163
+        assertTrue(Arrays.equals(ints2, Arraz.removeElementFromArray(ints2, 0)));
164
+    }
165
+
166
+    @Test
167
+    public void test1InsertIntoArrayAt() {
168
+        int indexToInsert = 3;
169
+        Integer valueToInsert = 10;
170
+
171
+        Integer[] expected = {4,5,102,10, -7,12,-32,92,8};
172
+        assertTrue(Arrays.equals(expected, Arraz.insertIntoArrayAt(ints, indexToInsert, valueToInsert)));
173
+    }
174
+
175
+    @Test
176
+    public void test2InsertIntoArrayAt() {
177
+        assertTrue(Arrays.equals(ints2, Arraz.insertIntoArrayAt(ints2, 100, 10)));
178
+    }
179
+
180
+    @Test
181
+    public void test1findMaxMinOfArray() {
182
+        Integer max = 31;
183
+        Integer min = 6;
184
+
185
+        assertEquals(max, Arraz.findMaxMinOfArray(ints2).getMax());
186
+        assertEquals(min, Arraz.findMaxMinOfArray(ints2).getMin());
187
+    }
188
+
189
+    @Test
190
+    public void test2findMaxMindOfArray() {
191
+        Integer[] arr = {0, 0, 0, 0, 0};
192
+
193
+        assertEquals(0, Arraz.findMaxMinOfArray(arr).getMax());
194
+        assertEquals(0, Arraz.findMaxMinOfArray(arr).getMin());
195
+
196
+    }
197
+
5 198
 }