Browse Source

doSomething

Soujanya Buragapu 6 years ago
parent
commit
968349c3dc
3 changed files with 239 additions and 249 deletions
  1. 221
    244
      .idea/workspace.xml
  2. 18
    5
      src/main/java/Question1.java
  3. BIN
      target/classes/Question1.class

+ 221
- 244
.idea/workspace.xml View File

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

+ 18
- 5
src/main/java/Question1.java View File

@@ -1,6 +1,8 @@
1 1
 public class Question1 {
2 2
 
3
-    public static void doSomething0() {
3
+    //returns random integers between 7(s+1) and 1
4
+    public static void doSomething0()
5
+    {
4 6
         int s = 6;
5 7
 
6 8
         int r = (int) (Math.random() * s) + 1;
@@ -8,7 +10,8 @@ public class Question1 {
8 10
         System.out.println(r);
9 11
     }
10 12
 
11
-    public static void doSomething1(int n) {
13
+    public static void doSomething1(int n)
14
+    {
12 15
         int foo = 1;
13 16
 
14 17
         while (foo <= n / 2) {
@@ -29,6 +32,11 @@ public class Question1 {
29 32
 
30 33
         System.out.println();
31 34
     }
35
+    // 1)n=4,i=0,p=1 , repeated while loop upto i=4 and printed the values of i and p
36
+    // 2)n=12,i=0,p=1, repeated while loop upto i=12 and printed the values of i and p
37
+    // 3)n=31,i=0,p=1, repeated while loop upto i=31 and printed the values if i and p
38
+    //                 returned negative value of i=31 because integer range -2,147,483,648 to 2,147,483,647
39
+    // 4)n=9,i=0,p=1,  repeated while loop upto i=9 and printed the values of i and p
32 40
 
33 41
     public static void doSomething2(int n) {
34 42
         int i = 0;
@@ -41,7 +49,10 @@ public class Question1 {
41 49
             i = i + 1;
42 50
         }
43 51
     }
44
-
52
+    //1e-15 = 0.000000000000001
53
+    //Math.abs -> prints the absolute value
54
+    //c=2.0,t=2.0 ; while (1>0) ; t=3.0/2.0 = 1.414213562373095
55
+    //c=225.0,t=225.0 ;
45 56
     public static void doSomething3(double c) {
46 57
         double epsilon = 1e-15;
47 58
         double t = c;
@@ -66,11 +77,13 @@ public class Question1 {
66 77
         }
67 78
         System.out.printf("%.4f\t%.8f\n", x, sum);
68 79
     }
69
-
70
-    public static int getInt(int n) {
80
+    //return random integer values between 0 to n
81
+    public static int getInt(int n)
82
+    {
71 83
         return (int) (Math.random() * n);
72 84
     }
73 85
 
86
+    // while (0< n(random value between 0 to 13)), value = random value ; k incremented to 1
74 87
     public static int doSomething5(int n) {
75 88
         boolean[] a = new boolean[n];
76 89
         int k = 0;

BIN
target/classes/Question1.class View File