Yesoda Sanka vor 6 Jahren
Ursprung
Commit
1f861ee1d1

+ 247
- 236
.idea/workspace.xml Datei anzeigen

@@ -1,70 +1,107 @@
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$/src/main/java/Question1.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Question1.java" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/test/java/Question1Test.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/Question1Test.java" afterDir="false" />
7
+    </list>
5 8
     <ignored path="$PROJECT_DIR$/out/" />
6 9
     <ignored path="$PROJECT_DIR$/target/" />
7 10
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
-    <option name="TRACKING_ENABLED" value="true" />
9 11
     <option name="SHOW_DIALOG" value="false" />
10 12
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
11 13
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12 14
     <option name="LAST_RESOLUTION" value="IGNORE" />
13 15
   </component>
16
+  <component name="FUSProjectUsageTrigger">
17
+    <session id="-191071951">
18
+      <usages-collector id="statistics.lifecycle.project">
19
+        <counts>
20
+          <entry key="project.open.time.1" value="1" />
21
+          <entry key="project.opened" value="1" />
22
+        </counts>
23
+      </usages-collector>
24
+      <usages-collector id="statistics.file.extensions.open">
25
+        <counts>
26
+          <entry key="class" value="2" />
27
+        </counts>
28
+      </usages-collector>
29
+      <usages-collector id="statistics.file.types.open">
30
+        <counts>
31
+          <entry key="CLASS" value="2" />
32
+        </counts>
33
+      </usages-collector>
34
+      <usages-collector id="statistics.file.extensions.edit">
35
+        <counts>
36
+          <entry key="class" value="37" />
37
+          <entry key="java" value="2690" />
38
+        </counts>
39
+      </usages-collector>
40
+      <usages-collector id="statistics.file.types.edit">
41
+        <counts>
42
+          <entry key="CLASS" value="37" />
43
+          <entry key="JAVA" value="2690" />
44
+        </counts>
45
+      </usages-collector>
46
+    </session>
47
+  </component>
14 48
   <component name="FileEditorManager">
15
-    <leaf>
16
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
49
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
50
+      <file pinned="false" current-in-tab="false">
17 51
         <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>
52
+          <provider selected="true" editor-type-id="text-editor" />
24 53
         </entry>
25 54
       </file>
26
-      <file leaf-file-name="Question1.java" pinned="false" current-in-tab="false">
55
+      <file pinned="false" current-in-tab="true">
27 56
         <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
28 57
           <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>
58
+            <state relative-caret-position="92">
59
+              <caret line="87" column="82" selection-start-line="87" selection-start-column="82" selection-end-line="87" selection-end-column="82" />
35 60
             </state>
36 61
           </provider>
37 62
         </entry>
38 63
       </file>
39
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
64
+      <file pinned="false" current-in-tab="false">
40 65
         <entry file="file://$PROJECT_DIR$/README.md">
41 66
           <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 />
67
+            <state split_layout="FIRST">
68
+              <first_editor relative-caret-position="225">
69
+                <caret line="15" column="47" lean-forward="true" selection-start-line="14" selection-start-column="27" selection-end-line="15" selection-end-column="47" />
46 70
               </first_editor>
47 71
               <second_editor />
48 72
             </state>
49 73
           </provider>
50 74
         </entry>
51 75
       </file>
52
-      <file leaf-file-name=".gitignore" pinned="false" current-in-tab="true">
53
-        <entry file="file://$PROJECT_DIR$/.gitignore">
76
+      <file pinned="false" current-in-tab="false">
77
+        <entry file="file://$PROJECT_DIR$/target/classes/Question1.class">
78
+          <provider selected="true" editor-type-id="text-editor">
79
+            <state relative-caret-position="-31">
80
+              <caret line="9" column="39" lean-forward="true" selection-start-line="9" selection-start-column="39" selection-end-line="9" selection-end-column="39" />
81
+              <folding>
82
+                <element signature="e#0#1983#0" expanded="true" />
83
+              </folding>
84
+            </state>
85
+          </provider>
86
+        </entry>
87
+      </file>
88
+      <file pinned="false" current-in-tab="false">
89
+        <entry file="file://$PROJECT_DIR$/target/test-classes/Question1Test.class">
54 90
           <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 />
91
+            <state relative-caret-position="82">
92
+              <caret line="24" column="35" selection-start-line="24" selection-start-column="31" selection-end-line="24" selection-end-column="35" />
93
+              <folding>
94
+                <element signature="e#0#1800#0" expanded="true" />
95
+              </folding>
58 96
             </state>
59 97
           </provider>
60 98
         </entry>
61 99
       </file>
62
-      <file leaf-file-name="Question1Test.java" pinned="false" current-in-tab="false">
100
+      <file pinned="false" current-in-tab="false">
63 101
         <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
64 102
           <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 />
103
+            <state relative-caret-position="-453">
104
+              <caret line="16" column="31" lean-forward="true" selection-start-line="16" selection-start-column="31" selection-end-line="16" selection-end-column="31" />
68 105
             </state>
69 106
           </provider>
70 107
         </entry>
@@ -84,9 +121,6 @@
84 121
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
85 122
   </component>
86 123
   <component name="GradleLocalSettings">
87
-    <option name="externalProjectsViewState">
88
-      <projects_view />
89
-    </option>
90 124
     <option name="projectSyncType">
91 125
       <map>
92 126
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
@@ -96,10 +130,10 @@
96 130
   <component name="IdeDocumentHistory">
97 131
     <option name="CHANGED_PATHS">
98 132
       <list>
99
-        <option value="$PROJECT_DIR$/src/test/java/Question1Test.java" />
100
-        <option value="$PROJECT_DIR$/src/main/java/Question1.java" />
101 133
         <option value="$PROJECT_DIR$/README.md" />
102 134
         <option value="$PROJECT_DIR$/.gitignore" />
135
+        <option value="$PROJECT_DIR$/src/test/java/Question1Test.java" />
136
+        <option value="$PROJECT_DIR$/src/main/java/Question1.java" />
103 137
       </list>
104 138
     </option>
105 139
   </component>
@@ -116,51 +150,57 @@
116 150
       </MavenImportingSettings>
117 151
     </option>
118 152
   </component>
119
-  <component name="ProjectFrameBounds" extendedState="6">
120
-    <option name="x" value="-1" />
153
+  <component name="ProjectFrameBounds">
121 154
     <option name="y" value="23" />
122
-    <option name="width" value="80" />
123
-    <option name="height" value="22" />
155
+    <option name="width" value="1280" />
156
+    <option name="height" value="709" />
124 157
   </component>
125 158
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
126 159
   <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 />
160
+    <navigator proportions="" version="1">
138 161
       <foldersAlwaysOnTop value="true" />
139 162
     </navigator>
140 163
     <panes>
164
+      <pane id="PackagesPane" />
141 165
       <pane id="ProjectPane">
142 166
         <subPane>
143 167
           <expand>
144 168
             <path>
145
-              <item name="Samples" type="b2602c69:ProjectViewProjectNode" />
146
-              <item name="Samples" type="462c0819:PsiDirectoryNode" />
169
+              <item name="RiddleMeThis" type="b2602c69:ProjectViewProjectNode" />
170
+              <item name="RiddleMeThis" type="462c0819:PsiDirectoryNode" />
171
+            </path>
172
+            <path>
173
+              <item name="RiddleMeThis" type="b2602c69:ProjectViewProjectNode" />
174
+              <item name="RiddleMeThis" type="462c0819:PsiDirectoryNode" />
175
+              <item name="target" type="462c0819:PsiDirectoryNode" />
176
+            </path>
177
+            <path>
178
+              <item name="RiddleMeThis" type="b2602c69:ProjectViewProjectNode" />
179
+              <item name="RiddleMeThis" type="462c0819:PsiDirectoryNode" />
180
+              <item name="target" type="462c0819:PsiDirectoryNode" />
181
+              <item name="classes" type="462c0819:PsiDirectoryNode" />
182
+            </path>
183
+            <path>
184
+              <item name="RiddleMeThis" type="b2602c69:ProjectViewProjectNode" />
185
+              <item name="RiddleMeThis" type="462c0819:PsiDirectoryNode" />
186
+              <item name="target" type="462c0819:PsiDirectoryNode" />
187
+              <item name="test-classes" type="462c0819:PsiDirectoryNode" />
147 188
             </path>
148 189
           </expand>
149 190
           <select />
150 191
         </subPane>
151 192
       </pane>
152
-      <pane id="AndroidView" />
153
-      <pane id="PackagesPane" />
154 193
       <pane id="Scope" />
155
-      <pane id="Scratches" />
156 194
     </panes>
157 195
   </component>
158 196
   <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 197
     <property name="WebServerToolWindowFactoryState" value="false" />
162 198
     <property name="aspect.path.notification.shown" value="true" />
199
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541042061339" />
163 200
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
201
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
202
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
203
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
164 204
   </component>
165 205
   <component name="RecentsManager">
166 206
     <key name="CreateTestDialog.RecentsKey">
@@ -182,141 +222,112 @@
182 222
       </list>
183 223
     </option>
184 224
   </component>
185
-  <component name="RunManager" selected="JUnit.Question1Test.doSomething4">
225
+  <component name="RunManager" selected="JUnit.Question1Test.doSomething5">
186 226
     <configuration default="true" type="Applet" factoryName="Applet">
187
-      <option name="WIDTH" value="400" />
188
-      <option name="HEIGHT" value="300" />
189 227
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
190
-      <module />
228
+      <method v="2">
229
+        <option name="Make" enabled="true" />
230
+      </method>
191 231
     </configuration>
192 232
     <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 233
       <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 />
234
+      <method v="2">
235
+        <option name="Make" enabled="true" />
236
+      </method>
205 237
     </configuration>
206 238
     <configuration name="Question1Test" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
207
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
208 239
       <module name="Samples" />
209
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
210
-      <option name="ALTERNATIVE_JRE_PATH" />
211 240
       <option name="PACKAGE_NAME" value="" />
212 241
       <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" />
217 242
       <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 />
243
+      <method v="2">
244
+        <option name="Make" enabled="true" />
245
+      </method>
246
+    </configuration>
247
+    <configuration name="Question1Test.doSomething0" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
248
+      <module name="Samples" />
249
+      <option name="PACKAGE_NAME" value="" />
250
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
251
+      <option name="METHOD_NAME" value="doSomething0" />
252
+      <option name="TEST_OBJECT" value="method" />
253
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
254
+      <method v="2">
255
+        <option name="Make" enabled="true" />
256
+      </method>
257
+    </configuration>
258
+    <configuration name="Question1Test.doSomething1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
259
+      <module name="Samples" />
260
+      <option name="PACKAGE_NAME" value="" />
261
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
262
+      <option name="METHOD_NAME" value="doSomething1" />
263
+      <option name="TEST_OBJECT" value="method" />
264
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
265
+      <method v="2">
266
+        <option name="Make" enabled="true" />
267
+      </method>
225 268
     </configuration>
226 269
     <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 270
       <module name="Samples" />
229
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
230
-      <option name="ALTERNATIVE_JRE_PATH" />
231 271
       <option name="PACKAGE_NAME" value="" />
232 272
       <option name="MAIN_CLASS_NAME" value="Question1Test" />
233 273
       <option name="METHOD_NAME" value="doSomething4" />
234 274
       <option name="TEST_OBJECT" value="method" />
235
-      <option name="VM_PARAMETERS" value="-ea" />
236
-      <option name="PARAMETERS" />
237 275
       <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 />
276
+      <method v="2">
277
+        <option name="Make" enabled="true" />
278
+      </method>
245 279
     </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" />
280
+    <configuration name="Question1Test.doSomething5" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
281
+      <module name="Samples" />
282
+      <option name="PACKAGE_NAME" value="" />
283
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
284
+      <option name="METHOD_NAME" value="doSomething5" />
285
+      <option name="TEST_OBJECT" value="method" />
257 286
       <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 />
287
+      <method v="2">
288
+        <option name="Make" enabled="true" />
289
+      </method>
265 290
     </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" />
291
+    <configuration default="true" type="JUnit" factoryName="JUnit">
292
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
293
+      <method v="2">
294
+        <option name="Make" enabled="true" />
295
+      </method>
272 296
     </configuration>
273 297
     <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 298
       <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 299
       <properties />
298 300
       <listeners />
301
+      <method v="2">
302
+        <option name="Make" enabled="true" />
303
+      </method>
299 304
     </configuration>
300 305
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
301 306
       <module name="" />
302 307
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
303 308
       <option name="PROGRAM_PARAMETERS" />
304 309
       <predefined_log_file id="idea.log" enabled="true" />
310
+      <method v="2">
311
+        <option name="Make" enabled="true" />
312
+      </method>
305 313
     </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" />
314
+    <list>
315
+      <item itemvalue="JUnit.Question1Test" />
316
+      <item itemvalue="JUnit.Question1Test.doSomething4" />
317
+      <item itemvalue="JUnit.Question1Test.doSomething0" />
318
+      <item itemvalue="JUnit.Question1Test.doSomething1" />
319
+      <item itemvalue="JUnit.Question1Test.doSomething5" />
309 320
     </list>
310 321
     <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" />
322
+      <list>
323
+        <item itemvalue="JUnit.Question1Test.doSomething5" />
324
+        <item itemvalue="JUnit.Question1Test" />
325
+        <item itemvalue="JUnit.Question1Test.doSomething1" />
326
+        <item itemvalue="JUnit.Question1Test.doSomething0" />
327
+        <item itemvalue="JUnit.Question1Test.doSomething4" />
314 328
       </list>
315 329
     </recent_temporary>
316 330
   </component>
317
-  <component name="ShelveChangesManager" show_recycled="false">
318
-    <option name="remove_strategy" value="false" />
319
-  </component>
320 331
   <component name="SvnConfiguration">
321 332
     <configuration />
322 333
   </component>
@@ -328,75 +339,78 @@
328 339
       <option name="presentableId" value="Default" />
329 340
       <updated>1541012263419</updated>
330 341
       <workItem from="1541012264832" duration="5000000" />
342
+      <workItem from="1541031735340" duration="10104000" />
331 343
     </task>
332 344
     <servers />
333 345
   </component>
334 346
   <component name="TestHistory">
335
-    <history-entry file="Question1Test - 2018.10.31 at 15h 24m 54s.xml">
336
-      <configuration name="Question1Test" configurationId="JUnit" />
347
+    <history-entry file="Question1Test_doSomething1 - 2018.10.31 at 21h 41m 33s.xml">
348
+      <configuration name="Question1Test.doSomething1" configurationId="JUnit" />
337 349
     </history-entry>
338
-    <history-entry file="Question1Test - 2018.10.31 at 15h 26m 53s.xml">
339
-      <configuration name="Question1Test" configurationId="JUnit" />
350
+    <history-entry file="Question1Test_doSomething1 - 2018.10.31 at 22h 07m 29s.xml">
351
+      <configuration name="Question1Test.doSomething1" configurationId="JUnit" />
340 352
     </history-entry>
341
-    <history-entry file="Question1Test - 2018.10.31 at 15h 27m 24s.xml">
353
+    <history-entry file="Question1Test - 2018.10.31 at 22h 41m 18s.xml">
342 354
       <configuration name="Question1Test" configurationId="JUnit" />
343 355
     </history-entry>
344
-    <history-entry file="Question1Test - 2018.10.31 at 15h 29m 22s.xml">
356
+    <history-entry file="Question1Test - 2018.10.31 at 23h 11m 43s.xml">
345 357
       <configuration name="Question1Test" configurationId="JUnit" />
346 358
     </history-entry>
347
-    <history-entry file="Question1Test - 2018.10.31 at 15h 33m 31s.xml">
348
-      <configuration name="Question1Test" configurationId="JUnit" />
359
+    <history-entry file="Question1Test_doSomething5 - 2018.10.31 at 23h 12m 58s.xml">
360
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
349 361
     </history-entry>
350
-    <history-entry file="Question1Test - 2018.10.31 at 15h 33m 45s.xml">
351
-      <configuration name="Question1Test" configurationId="JUnit" />
362
+    <history-entry file="Question1Test_doSomething5 - 2018.10.31 at 23h 13m 04s.xml">
363
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
352 364
     </history-entry>
353
-    <history-entry file="Question1Test - 2018.10.31 at 15h 35m 09s.xml">
354
-      <configuration name="Question1Test" configurationId="JUnit" />
365
+    <history-entry file="Question1Test_doSomething5 - 2018.10.31 at 23h 13m 27s.xml">
366
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
355 367
     </history-entry>
356
-    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 35m 53s.xml">
357
-      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
368
+    <history-entry file="Question1Test_doSomething5 - 2018.10.31 at 23h 13m 31s.xml">
369
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
358 370
     </history-entry>
359
-    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 36m 27s.xml">
360
-      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
371
+    <history-entry file="Question1Test_doSomething5 - 2018.10.31 at 23h 13m 35s.xml">
372
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
361 373
     </history-entry>
362
-    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 37m 22s.xml">
363
-      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
374
+    <history-entry file="Question1Test_doSomething5 - 2018.10.31 at 23h 13m 38s.xml">
375
+      <configuration name="Question1Test.doSomething5" configurationId="JUnit" />
364 376
     </history-entry>
365 377
   </component>
366 378
   <component name="TimeTrackingManager">
367
-    <option name="totallyTimeSpent" value="5000000" />
379
+    <option name="totallyTimeSpent" value="15104000" />
368 380
   </component>
369 381
   <component name="ToolWindowManager">
370
-    <frame x="0" y="23" width="1674" height="971" extended-state="6" />
382
+    <frame x="0" y="23" width="1280" height="709" extended-state="6" />
371 383
     <editor active="true" />
372 384
     <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" />
385
+      <window_info id="Learn" />
386
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2536349" />
387
+      <window_info id="Structure" order="1" weight="0.25" />
388
+      <window_info id="Image Layers" order="2" />
389
+      <window_info id="Designer" order="3" />
390
+      <window_info id="UI Designer" order="4" />
391
+      <window_info id="Capture Tool" order="5" />
392
+      <window_info id="Favorites" order="6" side_tool="true" />
393
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
394
+      <window_info anchor="bottom" id="Message" order="0" />
395
+      <window_info anchor="bottom" id="Find" order="1" />
396
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.34035656" />
397
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.3987034" />
398
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
399
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
400
+      <window_info anchor="bottom" id="TODO" order="6" />
401
+      <window_info anchor="bottom" id="Terminal" order="7" weight="0.32901135" />
402
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
403
+      <window_info anchor="bottom" id="Version Control" order="9" />
404
+      <window_info anchor="bottom" id="Messages" order="10" weight="0.32901135" />
405
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
406
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
407
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
408
+      <window_info anchor="right" id="Palette" order="3" />
409
+      <window_info anchor="right" id="Capture Analysis" order="4" />
410
+      <window_info anchor="right" id="Theme Preview" order="5" />
411
+      <window_info anchor="right" id="Database" order="6" />
412
+      <window_info anchor="right" id="Palette&#9;" order="7" />
413
+      <window_info anchor="right" id="Maven Projects" order="8" />
400 414
     </layout>
401 415
   </component>
402 416
   <component name="TypeScriptGeneratedFilesManager">
@@ -405,62 +419,59 @@
405 419
   <component name="VcsContentAnnotationSettings">
406 420
     <option name="myLimit" value="2678400000" />
407 421
   </component>
408
-  <component name="XDebuggerManager">
409
-    <breakpoint-manager />
410
-    <watches-manager />
411
-  </component>
412 422
   <component name="editorHistoryManager">
423
+    <entry file="file://$PROJECT_DIR$/../CashMachine/src/main/java/rocks/zipcode/atm/CashMachineApp.java" />
413 424
     <entry file="file://$PROJECT_DIR$/pom.xml">
414
-      <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 />
418
-        </state>
419
-      </provider>
425
+      <provider selected="true" editor-type-id="text-editor" />
420 426
     </entry>
421
-    <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
427
+    <entry file="file://$PROJECT_DIR$/.gitignore">
422 428
       <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 />
429
+        <state relative-caret-position="1590">
430
+          <caret line="106" selection-start-line="106" selection-end-line="106" />
426 431
         </state>
427 432
       </provider>
428 433
     </entry>
429
-    <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
434
+    <entry file="file://$PROJECT_DIR$/target/classes/Question1.class">
430 435
       <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" />
436
+        <state relative-caret-position="-31">
437
+          <caret line="9" column="39" lean-forward="true" selection-start-line="9" selection-start-column="39" selection-end-line="9" selection-end-column="39" />
433 438
           <folding>
434
-            <element signature="e#1408#1409#0" expanded="true" />
435
-            <element signature="e#1456#1457#0" expanded="true" />
439
+            <element signature="e#0#1983#0" expanded="true" />
436 440
           </folding>
437 441
         </state>
438 442
       </provider>
439 443
     </entry>
440
-    <entry file="file://$PROJECT_DIR$/../CashMachine/src/main/java/rocks/zipcode/atm/CashMachineApp.java">
441
-      <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 />
445
-        </state>
446
-      </provider>
447
-    </entry>
448 444
     <entry file="file://$PROJECT_DIR$/README.md">
449 445
       <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 />
446
+        <state split_layout="FIRST">
447
+          <first_editor relative-caret-position="225">
448
+            <caret line="15" column="47" lean-forward="true" selection-start-line="14" selection-start-column="27" selection-end-line="15" selection-end-column="47" />
454 449
           </first_editor>
455 450
           <second_editor />
456 451
         </state>
457 452
       </provider>
458 453
     </entry>
459
-    <entry file="file://$PROJECT_DIR$/.gitignore">
454
+    <entry file="file://$PROJECT_DIR$/target/test-classes/Question1Test.class">
455
+      <provider selected="true" editor-type-id="text-editor">
456
+        <state relative-caret-position="82">
457
+          <caret line="24" column="35" selection-start-line="24" selection-start-column="31" selection-end-line="24" selection-end-column="35" />
458
+          <folding>
459
+            <element signature="e#0#1800#0" expanded="true" />
460
+          </folding>
461
+        </state>
462
+      </provider>
463
+    </entry>
464
+    <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
465
+      <provider selected="true" editor-type-id="text-editor">
466
+        <state relative-caret-position="-453">
467
+          <caret line="16" column="31" lean-forward="true" selection-start-line="16" selection-start-column="31" selection-end-line="16" selection-end-column="31" />
468
+        </state>
469
+      </provider>
470
+    </entry>
471
+    <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
460 472
       <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 />
473
+        <state relative-caret-position="92">
474
+          <caret line="87" column="82" selection-start-line="87" selection-start-column="82" selection-end-line="87" selection-end-column="82" />
464 475
         </state>
465 476
       </provider>
466 477
     </entry>

+ 57
- 41
src/main/java/Question1.java Datei anzeigen

@@ -1,89 +1,105 @@
1 1
 public class Question1 {
2 2
 
3
+
4
+    // this doSomething0 method returns a random number between range 1 to 6
3 5
     public static void doSomething0() {
4 6
         int s = 6;
5 7
 
6
-        int r = (int) (Math.random() * s) + 1;
8
+        int r = (int) (Math.random() * s) + 1; //random number will multiply to 6 and then add the value 1
7 9
 
8
-        System.out.println(r);
10
+        System.out.println(r); // print value of r
9 11
     }
10 12
 
11
-    public static void doSomething1(int n) {
12
-        int foo = 1;
13
+    // This method returns the decimal number to Binary number
14
+    public static void doSomething1(int n) { // let us suppose n is 5
15
+        int foo = 1; //foo value 1
13 16
 
14
-        while (foo <= n / 2) {
15
-            foo *= 2;
17
+        while (foo <= n / 2) {  // 1<=5/2  next time 2<=2
18
+            foo *= 2; // foo value multiply by 2,  now foo is 4
16 19
         }
17 20
 
18
-        while (foo > 0) {
21
+        while (foo > 0) { // 4>0  condition true; 2>0
19 22
 
20
-            if (n < foo) {
21
-                System.out.print(0);
23
+            if (n < foo) { // 5<4 condition false ; True 1<2
24
+                System.out.print(0); // 2nd loop it prints 0
22 25
             } else {
23
-                System.out.print(1);
24
-                n -= foo;
26
+                System.out.print(1); //print 1
27
+                n -= foo;//n  is 1
25 28
             }
26 29
 
27
-            foo /= 2;
30
+            foo /= 2; // foo is 2  and foo is 0
28 31
         }
29 32
 
30
-        System.out.println();
33
+        System.out.println();// 1 and 0
31 34
     }
32 35
 
36
+
37
+ // This method generates series of  2 exponent for a given input number
33 38
     public static void doSomething2(int n) {
34 39
         int i = 0;
35 40
         int p = 1;
36 41
 
37 42
 
38
-        while (i <= n) {
43
+        while (i <= n) {  // start from 0 till i value reaches value of n
39 44
             System.out.println(i + " " + p);
40 45
             p = 2 * p;
41 46
             i = i + 1;
42 47
         }
43 48
     }
44 49
 
45
-    public static void doSomething3(double c) {
46
-        double epsilon = 1e-15;
47
-        double t = c;
48 50
 
49
-        while (Math.abs(t - c/t) > epsilon*t) {
50
-            t = (c/t + t) / 2.0;
51
+
52
+// This method returns Square root of a given input
53
+
54
+    public static void doSomething3(double c) {  // let us suppose c=10.3
55
+        double epsilon = 1e-15;      // 1 power -15
56
+        double t = c; // t=10.3
57
+
58
+        while (Math.abs(t - c/t) > epsilon*t) {   // while (Math.abs(10.3-10.3/10.3 )> -1* 10.3= (10.3 -1)>-10.3
59
+            t = (c/t + t) / 2.0;// 5.6, 3. it reduces the value till sqaure root is found
51 60
         }
52 61
 
53
-        System.out.println(t);
62
+        System.out.println(t); // 3.2 for input  square root 10.3 s
54 63
     }
55 64
 
56
-    public static void doSomething4(double x) {
57
-        x = x % (2 * Math.PI);
65
+
66
+    // This method is a Sin value of input
67
+    public static void doSomething4(double x) { //let us suppose x =5.2
68
+        x = x % (2 * Math.PI); // x=5.2%(2*3.145)=0.32672563
58 69
 
59 70
         double term = 1.0;
60 71
         double sum  = 0.0;
61 72
 
62
-        for (int i = 1; term != 0.0; i++) {
63
-            term *= (x / i);
64
-            if (i % 4 == 1) sum += term;
65
-            if (i % 4 == 3) sum -= term;
73
+        for (int i = 1; term != 0.0; i++) { // i is 1 and term is not equal to 0  and  increment the value of i
74
+            term *= (x / i); //term=0.32672563;0.16335;
75
+            if (i % 4 == 1) sum += term; // i=0.04
76
+            if (i % 4 == 3) sum -= term; // i=0.04
66 77
         }
67
-        System.out.printf("%.4f\t%.8f\n", x, sum);
78
+        System.out.printf("%.4f\t%.8f\n", x, sum);// x =0.3267, sum=0.00000000;  like this it will continue till term = 0.0
68 79
     }
69 80
 
70
-    public static int getInt(int n) {
71
-        return (int) (Math.random() * n);
81
+
82
+    // This method return the Random number in the range of 0 to n-1, for a given input n
83
+    public static int getInt(int n) { //getInt is a method  returns int . let us suppose take n is 10
84
+
85
+        return (int) (Math.random() * n);// returns a random number between 0 to n-1 range
72 86
     }
73 87
 
74
-    public static int doSomething5(int n) {
75
-        boolean[] a = new boolean[n];
76
-        int k = 0;
77
-        int d  = 0;
78
-
79
-        while (d < n) {
80
-            int value = getInt(n);
81
-            k++;
82
-            if (!a[value]) {
83
-                d++;
84
-                a[value] = true;
88
+    // Generates a random number for a given input always greater than input value
89
+    public static int doSomething5(int n) {//let us suppose n is 5
90
+        boolean[] a = new boolean[n];//boolean array[5] means arrays of booleans are initialised to false and
91
+        // arrays of reference types are initialised to null.
92
+        int k = 0; // k is 0
93
+        int d  = 0;// d is 0
94
+
95
+        while (d < n) { //0<5
96
+            int value = getInt(n); // getInt returns random number between 0 to n-1
97
+            k++; //increment the k value
98
+            if (!a[value]) { // if a [value] is false
99
+                d++;         // increment the value of d
100
+                a[value] = true; // initialize to 5
85 101
             }
86 102
         }
87
-        return k;
103
+        return k; // return 5
88 104
     }
89 105
 }

+ 4
- 4
src/test/java/Question1Test.java Datei anzeigen

@@ -32,10 +32,10 @@ public class Question1Test {
32 32
     public void doSomething3() {
33 33
         System.out.println("\ndoS3:\n");
34 34
 
35
-        Question1.doSomething3(2.0);
35
+        Question1.doSomething3(2.2);
36 36
         Question1.doSomething3(225.0);
37 37
         Question1.doSomething3(5.0);
38
-        Question1.doSomething3(16.0);
38
+        Question1.doSomething3(16.5);
39 39
     }
40 40
 
41 41
     @org.junit.Test
@@ -53,13 +53,13 @@ public class Question1Test {
53 53
     public void doSomething5() {
54 54
         System.out.println("\ndoS5:\n");
55 55
 
56
-        int x1 = 13;
56
+        int x1 = 12;
57 57
         int x = Question1.doSomething5(x1);
58 58
         System.out.printf("%d %d\n", x1, x);
59 59
         x1 = 25;
60 60
         x = Question1.doSomething5(x1);
61 61
         System.out.printf("%d %d\n", x1, x);
62
-        x1 = 52;
62
+        x1 = 50;
63 63
         x = Question1.doSomething5(x1);
64 64
         System.out.printf("%d %d\n", x1, x);
65 65
     }

BIN
target/classes/Question1.class Datei anzeigen


BIN
target/test-classes/Question1Test.class Datei anzeigen