Просмотр исходного кода

thanks for the lap it help a lot

CHU1TA26 6 лет назад
Родитель
Сommit
8a86b6ec9a
3 измененных файлов: 295 добавлений и 244 удалений
  1. 249
    244
      .idea/workspace.xml
  2. 46
    0
      src/main/java/Question1.java
  3. Двоичные данные
      target/classes/Question1.class

+ 249
- 244
.idea/workspace.xml Просмотреть файл

@@ -1,70 +1,76 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="ff0f55eb-552a-45f4-8a74-866e22f63e9a" name="Default" comment="" />
4
+    <list default="true" id="ff0f55eb-552a-45f4-8a74-866e22f63e9a" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/Question1.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Question1.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/target/classes/Question1.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/Question1.class" afterDir="false" />
8
+    </list>
5 9
     <ignored path="$PROJECT_DIR$/out/" />
6 10
     <ignored path="$PROJECT_DIR$/target/" />
7 11
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
-    <option name="TRACKING_ENABLED" value="true" />
9 12
     <option name="SHOW_DIALOG" value="false" />
10 13
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
11 14
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12 15
     <option name="LAST_RESOLUTION" value="IGNORE" />
13 16
   </component>
17
+  <component name="FUSProjectUsageTrigger">
18
+    <session id="98434272">
19
+      <usages-collector id="statistics.lifecycle.project">
20
+        <counts>
21
+          <entry key="project.open.time.3" value="1" />
22
+          <entry key="project.opened" value="1" />
23
+        </counts>
24
+      </usages-collector>
25
+      <usages-collector id="statistics.file.extensions.edit">
26
+        <counts>
27
+          <entry key="java" value="3798" />
28
+        </counts>
29
+      </usages-collector>
30
+      <usages-collector id="statistics.file.types.edit">
31
+        <counts>
32
+          <entry key="JAVA" value="3798" />
33
+        </counts>
34
+      </usages-collector>
35
+      <usages-collector id="statistics.spring.boot.run.usages" />
36
+      <usages-collector id="statistics.vcs.git.usages" />
37
+      <usages-collector id="statistics.file.extensions.open">
38
+        <counts>
39
+          <entry key="class" value="2" />
40
+          <entry key="java" value="6" />
41
+        </counts>
42
+      </usages-collector>
43
+      <usages-collector id="statistics.js.language.service.starts" />
44
+      <usages-collector id="statistics.file.types.open">
45
+        <counts>
46
+          <entry key="CLASS" value="2" />
47
+          <entry key="JAVA" value="6" />
48
+        </counts>
49
+      </usages-collector>
50
+      <usages-collector id="statistics.spring.boot.mvc.usages" />
51
+    </session>
52
+  </component>
14 53
   <component name="FileEditorManager">
15
-    <leaf>
16
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
54
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
55
+      <file pinned="false" current-in-tab="false">
17 56
         <entry file="file://$PROJECT_DIR$/pom.xml">
18
-          <provider selected="true" editor-type-id="text-editor">
19
-            <state relative-caret-position="0">
20
-              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
21
-              <folding />
22
-            </state>
23
-          </provider>
57
+          <provider selected="true" editor-type-id="text-editor" />
24 58
         </entry>
25 59
       </file>
26
-      <file leaf-file-name="Question1.java" pinned="false" current-in-tab="false">
60
+      <file pinned="false" current-in-tab="true">
27 61
         <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
28 62
           <provider selected="true" editor-type-id="text-editor">
29
-            <state relative-caret-position="-302">
30
-              <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
31
-              <folding>
32
-                <element signature="e#1408#1409#0" expanded="true" />
33
-                <element signature="e#1456#1457#0" expanded="true" />
34
-              </folding>
35
-            </state>
36
-          </provider>
37
-        </entry>
38
-      </file>
39
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
40
-        <entry file="file://$PROJECT_DIR$/README.md">
41
-          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
42
-            <state split_layout="SPLIT">
43
-              <first_editor relative-caret-position="272">
44
-                <caret line="16" column="0" lean-forward="false" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
45
-                <folding />
46
-              </first_editor>
47
-              <second_editor />
48
-            </state>
49
-          </provider>
50
-        </entry>
51
-      </file>
52
-      <file leaf-file-name=".gitignore" pinned="false" current-in-tab="true">
53
-        <entry file="file://$PROJECT_DIR$/.gitignore">
54
-          <provider selected="true" editor-type-id="text-editor">
55
-            <state relative-caret-position="510">
56
-              <caret line="106" column="0" lean-forward="true" selection-start-line="106" selection-start-column="0" selection-end-line="106" selection-end-column="0" />
57
-              <folding />
63
+            <state relative-caret-position="1242">
64
+              <caret line="69" column="11" selection-start-line="69" selection-start-column="11" selection-end-line="69" selection-end-column="11" />
58 65
             </state>
59 66
           </provider>
60 67
         </entry>
61 68
       </file>
62
-      <file leaf-file-name="Question1Test.java" pinned="false" current-in-tab="false">
69
+      <file pinned="false" current-in-tab="false">
63 70
         <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
64 71
           <provider selected="true" editor-type-id="text-editor">
65
-            <state relative-caret-position="136">
66
-              <caret line="8" column="37" lean-forward="false" selection-start-line="8" selection-start-column="37" selection-end-line="8" selection-end-column="37" />
67
-              <folding />
72
+            <state relative-caret-position="152">
73
+              <caret line="59" selection-start-line="59" selection-end-line="59" />
68 74
             </state>
69 75
           </provider>
70 76
         </entry>
@@ -84,9 +90,6 @@
84 90
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
85 91
   </component>
86 92
   <component name="GradleLocalSettings">
87
-    <option name="externalProjectsViewState">
88
-      <projects_view />
89
-    </option>
90 93
     <option name="projectSyncType">
91 94
       <map>
92 95
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
@@ -97,9 +100,9 @@
97 100
     <option name="CHANGED_PATHS">
98 101
       <list>
99 102
         <option value="$PROJECT_DIR$/src/test/java/Question1Test.java" />
100
-        <option value="$PROJECT_DIR$/src/main/java/Question1.java" />
101 103
         <option value="$PROJECT_DIR$/README.md" />
102 104
         <option value="$PROJECT_DIR$/.gitignore" />
105
+        <option value="$PROJECT_DIR$/src/main/java/Question1.java" />
103 106
       </list>
104 107
     </option>
105 108
   </component>
@@ -117,27 +120,19 @@
117 120
     </option>
118 121
   </component>
119 122
   <component name="ProjectFrameBounds" extendedState="6">
120
-    <option name="x" value="-1" />
123
+    <option name="x" value="149" />
121 124
     <option name="y" value="23" />
122
-    <option name="width" value="80" />
123
-    <option name="height" value="22" />
125
+    <option name="width" value="1280" />
126
+    <option name="height" value="723" />
124 127
   </component>
125 128
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
126 129
   <component name="ProjectView">
127
-    <navigator currentView="ProjectPane" proportions="" version="1">
128
-      <flattenPackages />
129
-      <showMembers />
130
-      <showModules />
131
-      <showLibraryContents />
132
-      <hideEmptyPackages />
133
-      <abbreviatePackageNames />
134
-      <autoscrollToSource />
135
-      <autoscrollFromSource />
136
-      <sortByType />
137
-      <manualOrder />
130
+    <navigator proportions="" version="1">
138 131
       <foldersAlwaysOnTop value="true" />
139 132
     </navigator>
140 133
     <panes>
134
+      <pane id="Scope" />
135
+      <pane id="PackagesPane" />
141 136
       <pane id="ProjectPane">
142 137
         <subPane>
143 138
           <expand>
@@ -149,18 +144,16 @@
149 144
           <select />
150 145
         </subPane>
151 146
       </pane>
152
-      <pane id="AndroidView" />
153
-      <pane id="PackagesPane" />
154
-      <pane id="Scope" />
155
-      <pane id="Scratches" />
156 147
     </panes>
157 148
   </component>
158 149
   <component name="PropertiesComponent">
159
-    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
160
-    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
161 150
     <property name="WebServerToolWindowFactoryState" value="false" />
162 151
     <property name="aspect.path.notification.shown" value="true" />
152
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541092923574" />
163 153
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
154
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
155
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
156
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
164 157
   </component>
165 158
   <component name="RecentsManager">
166 159
     <key name="CreateTestDialog.RecentsKey">
@@ -182,141 +175,114 @@
182 175
       </list>
183 176
     </option>
184 177
   </component>
185
-  <component name="RunManager" selected="JUnit.Question1Test.doSomething4">
178
+  <component name="RunManager" selected="JUnit.Question1Test.doSomething5">
186 179
     <configuration default="true" type="Applet" factoryName="Applet">
187
-      <option name="WIDTH" value="400" />
188
-      <option name="HEIGHT" value="300" />
189 180
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
190
-      <module />
181
+      <method v="2">
182
+        <option name="Make" enabled="true" />
183
+      </method>
191 184
     </configuration>
192 185
     <configuration default="true" type="Application" factoryName="Application">
193
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
194
-      <option name="MAIN_CLASS_NAME" />
195
-      <option name="VM_PARAMETERS" />
196
-      <option name="PROGRAM_PARAMETERS" />
197 186
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
198
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
199
-      <option name="ALTERNATIVE_JRE_PATH" />
200
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
201
-      <option name="ENV_VARIABLES" />
202
-      <option name="PASS_PARENT_ENVS" value="true" />
203
-      <module name="" />
204
-      <envs />
187
+      <method v="2">
188
+        <option name="Make" enabled="true" />
189
+      </method>
190
+    </configuration>
191
+    <configuration name="Question1Test.doSomething1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
192
+      <module name="Samples" />
193
+      <option name="PACKAGE_NAME" value="" />
194
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
195
+      <option name="METHOD_NAME" value="doSomething1" />
196
+      <option name="TEST_OBJECT" value="method" />
197
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
198
+      <method v="2">
199
+        <option name="Make" enabled="true" />
200
+      </method>
205 201
     </configuration>
206
-    <configuration name="Question1Test" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
207
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
202
+    <configuration name="Question1Test.doSomething2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
208 203
       <module name="Samples" />
209
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
210
-      <option name="ALTERNATIVE_JRE_PATH" />
211 204
       <option name="PACKAGE_NAME" value="" />
212 205
       <option name="MAIN_CLASS_NAME" value="Question1Test" />
213
-      <option name="METHOD_NAME" />
214
-      <option name="TEST_OBJECT" value="class" />
215
-      <option name="VM_PARAMETERS" value="-ea" />
216
-      <option name="PARAMETERS" />
206
+      <option name="METHOD_NAME" value="doSomething2" />
207
+      <option name="TEST_OBJECT" value="method" />
217 208
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
218
-      <option name="ENV_VARIABLES" />
219
-      <option name="PASS_PARENT_ENVS" value="true" />
220
-      <option name="TEST_SEARCH_SCOPE">
221
-        <value defaultName="singleModule" />
222
-      </option>
223
-      <envs />
224
-      <patterns />
209
+      <method v="2">
210
+        <option name="Make" enabled="true" />
211
+      </method>
212
+    </configuration>
213
+    <configuration name="Question1Test.doSomething3" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
214
+      <module name="Samples" />
215
+      <option name="PACKAGE_NAME" value="" />
216
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
217
+      <option name="METHOD_NAME" value="doSomething3" />
218
+      <option name="TEST_OBJECT" value="method" />
219
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
220
+      <method v="2">
221
+        <option name="Make" enabled="true" />
222
+      </method>
225 223
     </configuration>
226 224
     <configuration name="Question1Test.doSomething4" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
227
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
228 225
       <module name="Samples" />
229
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
230
-      <option name="ALTERNATIVE_JRE_PATH" />
231 226
       <option name="PACKAGE_NAME" value="" />
232 227
       <option name="MAIN_CLASS_NAME" value="Question1Test" />
233 228
       <option name="METHOD_NAME" value="doSomething4" />
234 229
       <option name="TEST_OBJECT" value="method" />
235
-      <option name="VM_PARAMETERS" value="-ea" />
236
-      <option name="PARAMETERS" />
237 230
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
238
-      <option name="ENV_VARIABLES" />
239
-      <option name="PASS_PARENT_ENVS" value="true" />
240
-      <option name="TEST_SEARCH_SCOPE">
241
-        <value defaultName="singleModule" />
242
-      </option>
243
-      <envs />
244
-      <patterns />
231
+      <method v="2">
232
+        <option name="Make" enabled="true" />
233
+      </method>
245 234
     </configuration>
246
-    <configuration default="true" type="JUnit" factoryName="JUnit">
247
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
248
-      <module name="" />
249
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
250
-      <option name="ALTERNATIVE_JRE_PATH" />
251
-      <option name="PACKAGE_NAME" />
252
-      <option name="MAIN_CLASS_NAME" />
253
-      <option name="METHOD_NAME" />
254
-      <option name="TEST_OBJECT" value="class" />
255
-      <option name="VM_PARAMETERS" value="-ea" />
256
-      <option name="PARAMETERS" />
235
+    <configuration name="Question1Test.doSomething5" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
236
+      <module name="Samples" />
237
+      <option name="PACKAGE_NAME" value="" />
238
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
239
+      <option name="METHOD_NAME" value="doSomething5" />
240
+      <option name="TEST_OBJECT" value="method" />
257 241
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
258
-      <option name="ENV_VARIABLES" />
259
-      <option name="PASS_PARENT_ENVS" value="true" />
260
-      <option name="TEST_SEARCH_SCOPE">
261
-        <value defaultName="singleModule" />
262
-      </option>
263
-      <envs />
264
-      <patterns />
242
+      <method v="2">
243
+        <option name="Make" enabled="true" />
244
+      </method>
265 245
     </configuration>
266
-    <configuration default="true" type="Remote" factoryName="Remote">
267
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
268
-      <option name="SERVER_MODE" value="false" />
269
-      <option name="SHMEM_ADDRESS" value="javadebug" />
270
-      <option name="HOST" value="localhost" />
271
-      <option name="PORT" value="5005" />
246
+    <configuration default="true" type="JUnit" factoryName="JUnit">
247
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
248
+      <method v="2">
249
+        <option name="Make" enabled="true" />
250
+      </method>
272 251
     </configuration>
273 252
     <configuration default="true" type="TestNG" factoryName="TestNG">
274
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
275
-      <module name="" />
276
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
277
-      <option name="ALTERNATIVE_JRE_PATH" />
278
-      <option name="SUITE_NAME" />
279
-      <option name="PACKAGE_NAME" />
280
-      <option name="MAIN_CLASS_NAME" />
281
-      <option name="METHOD_NAME" />
282
-      <option name="GROUP_NAME" />
283
-      <option name="TEST_OBJECT" value="CLASS" />
284
-      <option name="VM_PARAMETERS" value="-ea" />
285
-      <option name="PARAMETERS" />
286 253
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
287
-      <option name="OUTPUT_DIRECTORY" />
288
-      <option name="ANNOTATION_TYPE" />
289
-      <option name="ENV_VARIABLES" />
290
-      <option name="PASS_PARENT_ENVS" value="true" />
291
-      <option name="TEST_SEARCH_SCOPE">
292
-        <value defaultName="singleModule" />
293
-      </option>
294
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
295
-      <option name="PROPERTIES_FILE" />
296
-      <envs />
297 254
       <properties />
298 255
       <listeners />
256
+      <method v="2">
257
+        <option name="Make" enabled="true" />
258
+      </method>
299 259
     </configuration>
300 260
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
301 261
       <module name="" />
302 262
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
303 263
       <option name="PROGRAM_PARAMETERS" />
304 264
       <predefined_log_file id="idea.log" enabled="true" />
265
+      <method v="2">
266
+        <option name="Make" enabled="true" />
267
+      </method>
305 268
     </configuration>
306
-    <list size="2">
307
-      <item index="0" class="java.lang.String" itemvalue="JUnit.Question1Test" />
308
-      <item index="1" class="java.lang.String" itemvalue="JUnit.Question1Test.doSomething4" />
269
+    <list>
270
+      <item itemvalue="JUnit.Question1Test.doSomething4" />
271
+      <item itemvalue="JUnit.Question1Test.doSomething1" />
272
+      <item itemvalue="JUnit.Question1Test.doSomething2" />
273
+      <item itemvalue="JUnit.Question1Test.doSomething3" />
274
+      <item itemvalue="JUnit.Question1Test.doSomething5" />
309 275
     </list>
310 276
     <recent_temporary>
311
-      <list size="2">
312
-        <item index="0" class="java.lang.String" itemvalue="JUnit.Question1Test.doSomething4" />
313
-        <item index="1" class="java.lang.String" itemvalue="JUnit.Question1Test" />
277
+      <list>
278
+        <item itemvalue="JUnit.Question1Test.doSomething5" />
279
+        <item itemvalue="JUnit.Question1Test.doSomething4" />
280
+        <item itemvalue="JUnit.Question1Test.doSomething3" />
281
+        <item itemvalue="JUnit.Question1Test.doSomething2" />
282
+        <item itemvalue="JUnit.Question1Test.doSomething1" />
314 283
       </list>
315 284
     </recent_temporary>
316 285
   </component>
317
-  <component name="ShelveChangesManager" show_recycled="false">
318
-    <option name="remove_strategy" value="false" />
319
-  </component>
320 286
   <component name="SvnConfiguration">
321 287
     <configuration />
322 288
   </component>
@@ -328,75 +294,77 @@
328 294
       <option name="presentableId" value="Default" />
329 295
       <updated>1541012263419</updated>
330 296
       <workItem from="1541012264832" duration="5000000" />
297
+      <workItem from="1541037438465" duration="10253000" />
331 298
     </task>
332 299
     <servers />
333 300
   </component>
334 301
   <component name="TestHistory">
335
-    <history-entry file="Question1Test - 2018.10.31 at 15h 24m 54s.xml">
336
-      <configuration name="Question1Test" configurationId="JUnit" />
302
+    <history-entry file="Question1Test_doSomething3 - 2018.10.31 at 23h 44m 32s.xml">
303
+      <configuration name="Question1Test.doSomething3" configurationId="JUnit" />
337 304
     </history-entry>
338
-    <history-entry file="Question1Test - 2018.10.31 at 15h 26m 53s.xml">
339
-      <configuration name="Question1Test" configurationId="JUnit" />
305
+    <history-entry file="Question1Test_doSomething2 - 2018.10.31 at 23h 44m 46s.xml">
306
+      <configuration name="Question1Test.doSomething2" configurationId="JUnit" />
340 307
     </history-entry>
341
-    <history-entry file="Question1Test - 2018.10.31 at 15h 27m 24s.xml">
342
-      <configuration name="Question1Test" configurationId="JUnit" />
308
+    <history-entry file="Question1Test_doSomething3 - 2018.10.31 at 23h 53m 17s.xml">
309
+      <configuration name="Question1Test.doSomething3" configurationId="JUnit" />
343 310
     </history-entry>
344
-    <history-entry file="Question1Test - 2018.10.31 at 15h 29m 22s.xml">
345
-      <configuration name="Question1Test" configurationId="JUnit" />
311
+    <history-entry file="Question1Test_doSomething4 - 2018.11.01 at 12h 47m 08s.xml">
312
+      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
346 313
     </history-entry>
347
-    <history-entry file="Question1Test - 2018.10.31 at 15h 33m 31s.xml">
348
-      <configuration name="Question1Test" configurationId="JUnit" />
314
+    <history-entry file="Question1Test_doSomething3 - 2018.11.01 at 12h 47m 17s.xml">
315
+      <configuration name="Question1Test.doSomething3" configurationId="JUnit" />
349 316
     </history-entry>
350
-    <history-entry file="Question1Test - 2018.10.31 at 15h 33m 45s.xml">
351
-      <configuration name="Question1Test" configurationId="JUnit" />
317
+    <history-entry file="Question1Test_doSomething5 - 2018.11.01 at 12h 58m 45s.xml">
318
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
352 319
     </history-entry>
353
-    <history-entry file="Question1Test - 2018.10.31 at 15h 35m 09s.xml">
354
-      <configuration name="Question1Test" configurationId="JUnit" />
320
+    <history-entry file="Question1Test_doSomething5 - 2018.11.01 at 13h 12m 53s.xml">
321
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
355 322
     </history-entry>
356
-    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 35m 53s.xml">
357
-      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
323
+    <history-entry file="Question1Test_doSomething5 - 2018.11.01 at 13h 14m 03s.xml">
324
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
358 325
     </history-entry>
359
-    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 36m 27s.xml">
360
-      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
326
+    <history-entry file="Question1Test_doSomething5 - 2018.11.01 at 13h 21m 53s.xml">
327
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
361 328
     </history-entry>
362
-    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 37m 22s.xml">
363
-      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
329
+    <history-entry file="Question1Test_doSomething5 - 2018.11.01 at 13h 27m 18s.xml">
330
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
364 331
     </history-entry>
365 332
   </component>
366 333
   <component name="TimeTrackingManager">
367
-    <option name="totallyTimeSpent" value="5000000" />
334
+    <option name="totallyTimeSpent" value="15253000" />
368 335
   </component>
369 336
   <component name="ToolWindowManager">
370
-    <frame x="0" y="23" width="1674" height="971" extended-state="6" />
337
+    <frame x="0" y="23" width="1280" height="723" extended-state="6" />
371 338
     <editor active="true" />
372 339
     <layout>
373
-      <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="-1" side_tool="false" content_ui="tabs" />
374
-      <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" />
375
-      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3299435" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
376
-      <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="-1" side_tool="false" content_ui="tabs" />
377
-      <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="-1" side_tool="false" content_ui="tabs" />
378
-      <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="-1" side_tool="false" content_ui="tabs" />
379
-      <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="-1" side_tool="true" content_ui="tabs" />
380
-      <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="-1" side_tool="false" content_ui="tabs" />
381
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.34152046" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
382
-      <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="-1" side_tool="false" content_ui="tabs" />
383
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32982457" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
384
-      <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="-1" side_tool="false" content_ui="tabs" />
385
-      <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="-1" side_tool="false" content_ui="tabs" />
386
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24969174" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
387
-      <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="-1" side_tool="false" content_ui="tabs" />
388
-      <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" />
389
-      <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" />
390
-      <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="-1" side_tool="false" content_ui="tabs" />
391
-      <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="-1" side_tool="false" content_ui="tabs" />
392
-      <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" />
393
-      <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="-1" side_tool="true" content_ui="tabs" />
394
-      <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" />
395
-      <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" />
396
-      <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" />
397
-      <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" />
398
-      <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" />
399
-      <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" />
340
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2536349" />
341
+      <window_info id="Structure" order="1" weight="0.25" />
342
+      <window_info id="Image Layers" order="2" />
343
+      <window_info id="Designer" order="3" />
344
+      <window_info id="UI Designer" order="4" />
345
+      <window_info id="Capture Tool" order="5" />
346
+      <window_info id="Favorites" order="6" side_tool="true" />
347
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
348
+      <window_info anchor="bottom" id="Message" order="0" />
349
+      <window_info anchor="bottom" id="Find" order="1" />
350
+      <window_info anchor="bottom" id="Run" order="2" weight="0.340729" />
351
+      <window_info active="true" anchor="bottom" id="Debug" order="3" visible="true" weight="0.39936608" />
352
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
353
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
354
+      <window_info anchor="bottom" id="TODO" order="6" />
355
+      <window_info anchor="bottom" id="Terminal" order="7" weight="0.3296355" />
356
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
357
+      <window_info anchor="bottom" id="Version Control" order="9" weight="0.3296355" />
358
+      <window_info anchor="bottom" id="Messages" order="10" weight="0.3296355" />
359
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
360
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
361
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
362
+      <window_info anchor="right" id="Palette" order="3" />
363
+      <window_info anchor="right" id="Capture Analysis" order="4" />
364
+      <window_info anchor="right" id="Theme Preview" order="5" />
365
+      <window_info anchor="right" id="Database" order="6" />
366
+      <window_info anchor="right" id="Palette&#9;" order="7" />
367
+      <window_info anchor="right" id="Maven Projects" order="8" />
400 368
     </layout>
401 369
   </component>
402 370
   <component name="TypeScriptGeneratedFilesManager">
@@ -406,61 +374,98 @@
406 374
     <option name="myLimit" value="2678400000" />
407 375
   </component>
408 376
   <component name="XDebuggerManager">
409
-    <breakpoint-manager />
410
-    <watches-manager />
377
+    <breakpoint-manager>
378
+      <breakpoints>
379
+        <line-breakpoint enabled="true" type="java-line">
380
+          <url>file://$PROJECT_DIR$/src/test/java/Question1Test.java</url>
381
+          <line>59</line>
382
+          <properties />
383
+          <option name="timeStamp" value="16" />
384
+        </line-breakpoint>
385
+      </breakpoints>
386
+      <breakpoints-dialog>
387
+        <breakpoints-dialog />
388
+      </breakpoints-dialog>
389
+    </breakpoint-manager>
411 390
   </component>
412 391
   <component name="editorHistoryManager">
392
+    <entry file="file://$PROJECT_DIR$/../CashMachine/src/main/java/rocks/zipcode/atm/CashMachineApp.java" />
413 393
     <entry file="file://$PROJECT_DIR$/pom.xml">
394
+      <provider selected="true" editor-type-id="text-editor" />
395
+    </entry>
396
+    <entry file="file://$PROJECT_DIR$/.gitignore">
414 397
       <provider selected="true" editor-type-id="text-editor">
415
-        <state relative-caret-position="0">
416
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
417
-          <folding />
398
+        <state relative-caret-position="368">
399
+          <caret line="106" selection-start-line="106" selection-end-line="106" />
418 400
         </state>
419 401
       </provider>
420 402
     </entry>
421
-    <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
403
+    <entry file="file://$PROJECT_DIR$/README.md">
404
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
405
+        <state split_layout="SPLIT">
406
+          <first_editor relative-caret-position="270">
407
+            <caret line="18" selection-start-line="18" selection-end-line="18" />
408
+          </first_editor>
409
+          <second_editor />
410
+        </state>
411
+      </provider>
412
+    </entry>
413
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/org/junit/internal/runners/TestMethodRunner.class">
422 414
       <provider selected="true" editor-type-id="text-editor">
423
-        <state relative-caret-position="136">
424
-          <caret line="8" column="37" lean-forward="false" selection-start-line="8" selection-start-column="37" selection-end-line="8" selection-end-column="37" />
425
-          <folding />
415
+        <state relative-caret-position="101">
416
+          <caret line="116" selection-start-line="116" selection-end-line="116" />
417
+          <folding>
418
+            <element signature="e#4094#4095#0" expanded="true" />
419
+          </folding>
426 420
         </state>
427 421
       </provider>
428 422
     </entry>
429
-    <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
423
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-sources.jar!/org/junit/internal/runners/TestMethodRunner.java">
430 424
       <provider selected="true" editor-type-id="text-editor">
431
-        <state relative-caret-position="-302">
432
-          <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
425
+        <state relative-caret-position="110">
426
+          <caret line="80" selection-start-line="80" selection-end-line="80" />
433 427
           <folding>
434
-            <element signature="e#1408#1409#0" expanded="true" />
435
-            <element signature="e#1456#1457#0" expanded="true" />
428
+            <element signature="e#3288#3289#0" expanded="true" />
429
+            <element signature="e#3346#3347#0" expanded="true" />
436 430
           </folding>
437 431
         </state>
438 432
       </provider>
439 433
     </entry>
440
-    <entry file="file://$PROJECT_DIR$/../CashMachine/src/main/java/rocks/zipcode/atm/CashMachineApp.java">
434
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-sources.jar!/org/junit/internal/runners/BeforeAndAfterRunner.java">
441 435
       <provider selected="true" editor-type-id="text-editor">
442
-        <state relative-caret-position="0">
443
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
444
-          <folding />
436
+        <state relative-caret-position="118">
437
+          <caret line="33" selection-start-line="33" selection-end-line="33" />
445 438
         </state>
446 439
       </provider>
447 440
     </entry>
448
-    <entry file="file://$PROJECT_DIR$/README.md">
449
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
450
-        <state split_layout="SPLIT">
451
-          <first_editor relative-caret-position="272">
452
-            <caret line="16" column="0" lean-forward="false" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
453
-            <folding />
454
-          </first_editor>
455
-          <second_editor />
441
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/io/PrintStream.java">
442
+      <provider selected="true" editor-type-id="text-editor">
443
+        <state relative-caret-position="-944">
444
+          <caret line="776" selection-start-line="776" selection-end-line="776" />
456 445
         </state>
457 446
       </provider>
458 447
     </entry>
459
-    <entry file="file://$PROJECT_DIR$/.gitignore">
448
+    <entry file="jar:///Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/src.zip!/java/lang/Math.java">
449
+      <provider selected="true" editor-type-id="text-editor">
450
+        <state relative-caret-position="118">
451
+          <caret line="772" selection-start-line="772" selection-end-line="772" />
452
+          <folding>
453
+            <element signature="e#32095#32096#0" expanded="true" />
454
+          </folding>
455
+        </state>
456
+      </provider>
457
+    </entry>
458
+    <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
459
+      <provider selected="true" editor-type-id="text-editor">
460
+        <state relative-caret-position="152">
461
+          <caret line="59" selection-start-line="59" selection-end-line="59" />
462
+        </state>
463
+      </provider>
464
+    </entry>
465
+    <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
460 466
       <provider selected="true" editor-type-id="text-editor">
461
-        <state relative-caret-position="510">
462
-          <caret line="106" column="0" lean-forward="true" selection-start-line="106" selection-start-column="0" selection-end-line="106" selection-end-column="0" />
463
-          <folding />
467
+        <state relative-caret-position="1242">
468
+          <caret line="69" column="11" selection-start-line="69" selection-start-column="11" selection-end-line="69" selection-end-column="11" />
464 469
         </state>
465 470
       </provider>
466 471
     </entry>

+ 46
- 0
src/main/java/Question1.java Просмотреть файл

@@ -1,6 +1,10 @@
1 1
 public class Question1 {
2 2
 
3 3
     public static void doSomething0() {
4
+        /**  this method will produce a random number from 1 to 6.
5
+         * The random will return double  the (int) is cast to  return int instead
6
+         * the +1  will add 1 to the random number so it will never return 0*/
7
+
4 8
         int s = 6;
5 9
 
6 10
         int r = (int) (Math.random() * s) + 1;
@@ -9,6 +13,16 @@ public class Question1 {
9 13
     }
10 14
 
11 15
     public static void doSomething1(int n) {
16
+        /** as long n is greater than 1 the while loop will start running
17
+          while foo is less or equal of half of n,then foo will be multipy by 2
18
+         foo will continue to increase making the statement false and stop the first while loop
19
+
20
+          when the first while loop stop foo will be greater than 0 and will start the second loop
21
+         if n is less than foo the System will print 1 than foo will be divided by 2
22
+         but if n is greater than  foo the system will print out 0 and subtract foo from n (n-foo)
23
+         it will keep subtractin untill foo will become 0 and stop the program.
24
+
25
+           */
12 26
         int foo = 1;
13 27
 
14 28
         while (foo <= n / 2) {
@@ -31,6 +45,10 @@ public class Question1 {
31 45
     }
32 46
 
33 47
     public static void doSomething2(int n) {
48
+        /** i start a 0 and while i is less or equal to n  the system will print out
49
+         * the value of i space value of p
50
+          and it will increase i by 1. Eventually i will become greater than n and the
51
+         while loop will stop*/
34 52
         int i = 0;
35 53
         int p = 1;
36 54
 
@@ -43,6 +61,15 @@ public class Question1 {
43 61
     }
44 62
 
45 63
     public static void doSomething3(double c) {
64
+        /** epsilon 1 to the power of negative 15.
65
+         * while the absolute value of t minus c divided by t is greater than epsilion multiply by t
66
+         * t will be equal to c divide b t plus t  than divide by two the system will print out the
67
+         * value of t
68
+         * as the program runs the value of t will continue to decrease making the while loop
69
+         * false and the loop will stop and print t
70
+         * 
71
+         */
72
+
46 73
         double epsilon = 1e-15;
47 74
         double t = c;
48 75
 
@@ -54,6 +81,9 @@ public class Question1 {
54 81
     }
55 82
 
56 83
     public static void doSomething4(double x) {
84
+        /** x is equal to x divided by double of pi
85
+         * sum will start a 0
86
+         * i will start at one t*/
57 87
         x = x % (2 * Math.PI);
58 88
 
59 89
         double term = 1.0;
@@ -68,10 +98,26 @@ public class Question1 {
68 98
     }
69 99
 
70 100
     public static int getInt(int n) {
101
+        /** return an int number random from 0.0 to n
102
+         */
71 103
         return (int) (Math.random() * n);
72 104
     }
73 105
 
74 106
     public static int doSomething5(int n) {
107
+        /** create an array that hold  boolean values. make the array length to n
108
+         * the array will automatically be set to false values
109
+         * k will be
110
+         * while d is less than n go to getInt method  produce a  random number and
111
+         * make value equal to the random number
112
+         * add one to k
113
+         * if array index value is not true add one to d and make that index of the array true
114
+         * run the loop until d become greater than n
115
+         * return k
116
+         * k will hold how many random number the program produce before the while statement
117
+         * became false
118
+         * if a random number is produce more than 1 time the if statement become false
119
+         * and nothing is added to d
120
+         */
75 121
         boolean[] a = new boolean[n];
76 122
         int k = 0;
77 123
         int d  = 0;

Двоичные данные
target/classes/Question1.class Просмотреть файл