Bladeren bron

made readme

Kr Younger 6 jaren geleden
bovenliggende
commit
84f85f6bbd

+ 16
- 0
.idea/compiler.xml Bestand weergeven

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="Samples" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="Samples" target="1.5" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_0.xml Bestand weergeven

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: junit:junit:4.0">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/misc.xml Bestand weergeven

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="MavenProjectsManager">
4
+    <option name="originalFiles">
5
+      <list>
6
+        <option value="$PROJECT_DIR$/pom.xml" />
7
+      </list>
8
+    </option>
9
+  </component>
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/out" />
12
+  </component>
13
+</project>

+ 8
- 0
.idea/modules.xml Bestand weergeven

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/Samples.iml" filepath="$PROJECT_DIR$/Samples.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml Bestand weergeven

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+  </component>
6
+</project>

+ 460
- 0
.idea/workspace.xml Bestand weergeven

@@ -0,0 +1,460 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="ff0f55eb-552a-45f4-8a74-866e22f63e9a" name="Default" comment="">
5
+      <change beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
6
+      <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
7
+    </list>
8
+    <ignored path="$PROJECT_DIR$/out/" />
9
+    <ignored path="$PROJECT_DIR$/target/" />
10
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
+    <option name="TRACKING_ENABLED" value="true" />
12
+    <option name="SHOW_DIALOG" value="false" />
13
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+    <option name="LAST_RESOLUTION" value="IGNORE" />
16
+  </component>
17
+  <component name="FileEditorManager">
18
+    <leaf>
19
+      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
20
+        <entry file="file://$PROJECT_DIR$/pom.xml">
21
+          <provider selected="true" editor-type-id="text-editor">
22
+            <state relative-caret-position="0">
23
+              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
24
+              <folding />
25
+            </state>
26
+          </provider>
27
+        </entry>
28
+      </file>
29
+      <file leaf-file-name="Question1.java" pinned="false" current-in-tab="false">
30
+        <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
31
+          <provider selected="true" editor-type-id="text-editor">
32
+            <state relative-caret-position="-302">
33
+              <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
34
+              <folding>
35
+                <element signature="e#1408#1409#0" expanded="true" />
36
+                <element signature="e#1456#1457#0" expanded="true" />
37
+              </folding>
38
+            </state>
39
+          </provider>
40
+        </entry>
41
+      </file>
42
+      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
43
+        <entry file="file://$PROJECT_DIR$/README.md">
44
+          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
45
+            <state split_layout="SPLIT">
46
+              <first_editor relative-caret-position="102">
47
+                <caret line="6" column="39" lean-forward="false" selection-start-line="6" selection-start-column="39" selection-end-line="6" selection-end-column="39" />
48
+                <folding />
49
+              </first_editor>
50
+              <second_editor />
51
+            </state>
52
+          </provider>
53
+        </entry>
54
+      </file>
55
+      <file leaf-file-name="Question1Test.java" pinned="false" current-in-tab="false">
56
+        <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
57
+          <provider selected="true" editor-type-id="text-editor">
58
+            <state relative-caret-position="136">
59
+              <caret line="8" column="37" lean-forward="false" selection-start-line="8" selection-start-column="37" selection-end-line="8" selection-end-column="37" />
60
+              <folding />
61
+            </state>
62
+          </provider>
63
+        </entry>
64
+      </file>
65
+    </leaf>
66
+  </component>
67
+  <component name="FileTemplateManagerImpl">
68
+    <option name="RECENT_TEMPLATES">
69
+      <list>
70
+        <option value="Class" />
71
+        <option value="Arquillian JUnit Test Class" />
72
+        <option value="JUnit4 Test Class" />
73
+      </list>
74
+    </option>
75
+  </component>
76
+  <component name="Git.Settings">
77
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
78
+  </component>
79
+  <component name="GradleLocalSettings">
80
+    <option name="externalProjectsViewState">
81
+      <projects_view />
82
+    </option>
83
+    <option name="projectSyncType">
84
+      <map>
85
+        <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
86
+      </map>
87
+    </option>
88
+  </component>
89
+  <component name="IdeDocumentHistory">
90
+    <option name="CHANGED_PATHS">
91
+      <list>
92
+        <option value="$PROJECT_DIR$/src/test/java/Question1Test.java" />
93
+        <option value="$PROJECT_DIR$/src/main/java/Question1.java" />
94
+        <option value="$PROJECT_DIR$/README.md" />
95
+      </list>
96
+    </option>
97
+  </component>
98
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
99
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
100
+  <component name="JsGulpfileManager">
101
+    <detection-done>true</detection-done>
102
+    <sorting>DEFINITION_ORDER</sorting>
103
+  </component>
104
+  <component name="MavenImportPreferences">
105
+    <option name="importingSettings">
106
+      <MavenImportingSettings>
107
+        <option name="importAutomatically" value="true" />
108
+      </MavenImportingSettings>
109
+    </option>
110
+  </component>
111
+  <component name="ProjectFrameBounds" extendedState="6">
112
+    <option name="x" value="-1" />
113
+    <option name="y" value="23" />
114
+    <option name="width" value="80" />
115
+    <option name="height" value="22" />
116
+  </component>
117
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
118
+  <component name="ProjectView">
119
+    <navigator currentView="ProjectPane" proportions="" version="1">
120
+      <flattenPackages />
121
+      <showMembers />
122
+      <showModules />
123
+      <showLibraryContents />
124
+      <hideEmptyPackages />
125
+      <abbreviatePackageNames />
126
+      <autoscrollToSource />
127
+      <autoscrollFromSource />
128
+      <sortByType />
129
+      <manualOrder />
130
+      <foldersAlwaysOnTop value="true" />
131
+    </navigator>
132
+    <panes>
133
+      <pane id="ProjectPane">
134
+        <subPane>
135
+          <expand>
136
+            <path>
137
+              <item name="Samples" type="b2602c69:ProjectViewProjectNode" />
138
+              <item name="Samples" type="462c0819:PsiDirectoryNode" />
139
+            </path>
140
+          </expand>
141
+          <select />
142
+        </subPane>
143
+      </pane>
144
+      <pane id="AndroidView" />
145
+      <pane id="PackagesPane" />
146
+      <pane id="Scope" />
147
+      <pane id="Scratches" />
148
+    </panes>
149
+  </component>
150
+  <component name="PropertiesComponent">
151
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
152
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
153
+    <property name="WebServerToolWindowFactoryState" value="false" />
154
+    <property name="aspect.path.notification.shown" value="true" />
155
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
156
+  </component>
157
+  <component name="RecentsManager">
158
+    <key name="CreateTestDialog.RecentsKey">
159
+      <recent name="" />
160
+    </key>
161
+    <key name="CreateTestDialog.Recents.Supers">
162
+      <recent name="" />
163
+    </key>
164
+  </component>
165
+  <component name="RunDashboard">
166
+    <option name="ruleStates">
167
+      <list>
168
+        <RuleState>
169
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
170
+        </RuleState>
171
+        <RuleState>
172
+          <option name="name" value="StatusDashboardGroupingRule" />
173
+        </RuleState>
174
+      </list>
175
+    </option>
176
+  </component>
177
+  <component name="RunManager" selected="JUnit.Question1Test.doSomething4">
178
+    <configuration default="true" type="Applet" factoryName="Applet">
179
+      <option name="WIDTH" value="400" />
180
+      <option name="HEIGHT" value="300" />
181
+      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
182
+      <module />
183
+    </configuration>
184
+    <configuration default="true" type="Application" factoryName="Application">
185
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
186
+      <option name="MAIN_CLASS_NAME" />
187
+      <option name="VM_PARAMETERS" />
188
+      <option name="PROGRAM_PARAMETERS" />
189
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
190
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
191
+      <option name="ALTERNATIVE_JRE_PATH" />
192
+      <option name="ENABLE_SWING_INSPECTOR" value="false" />
193
+      <option name="ENV_VARIABLES" />
194
+      <option name="PASS_PARENT_ENVS" value="true" />
195
+      <module name="" />
196
+      <envs />
197
+    </configuration>
198
+    <configuration name="Question1Test" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
199
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
200
+      <module name="Samples" />
201
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
202
+      <option name="ALTERNATIVE_JRE_PATH" />
203
+      <option name="PACKAGE_NAME" value="" />
204
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
205
+      <option name="METHOD_NAME" />
206
+      <option name="TEST_OBJECT" value="class" />
207
+      <option name="VM_PARAMETERS" value="-ea" />
208
+      <option name="PARAMETERS" />
209
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
210
+      <option name="ENV_VARIABLES" />
211
+      <option name="PASS_PARENT_ENVS" value="true" />
212
+      <option name="TEST_SEARCH_SCOPE">
213
+        <value defaultName="singleModule" />
214
+      </option>
215
+      <envs />
216
+      <patterns />
217
+    </configuration>
218
+    <configuration name="Question1Test.doSomething4" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
219
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
220
+      <module name="Samples" />
221
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
222
+      <option name="ALTERNATIVE_JRE_PATH" />
223
+      <option name="PACKAGE_NAME" value="" />
224
+      <option name="MAIN_CLASS_NAME" value="Question1Test" />
225
+      <option name="METHOD_NAME" value="doSomething4" />
226
+      <option name="TEST_OBJECT" value="method" />
227
+      <option name="VM_PARAMETERS" value="-ea" />
228
+      <option name="PARAMETERS" />
229
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
230
+      <option name="ENV_VARIABLES" />
231
+      <option name="PASS_PARENT_ENVS" value="true" />
232
+      <option name="TEST_SEARCH_SCOPE">
233
+        <value defaultName="singleModule" />
234
+      </option>
235
+      <envs />
236
+      <patterns />
237
+    </configuration>
238
+    <configuration default="true" type="JUnit" factoryName="JUnit">
239
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
240
+      <module name="" />
241
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
242
+      <option name="ALTERNATIVE_JRE_PATH" />
243
+      <option name="PACKAGE_NAME" />
244
+      <option name="MAIN_CLASS_NAME" />
245
+      <option name="METHOD_NAME" />
246
+      <option name="TEST_OBJECT" value="class" />
247
+      <option name="VM_PARAMETERS" value="-ea" />
248
+      <option name="PARAMETERS" />
249
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
250
+      <option name="ENV_VARIABLES" />
251
+      <option name="PASS_PARENT_ENVS" value="true" />
252
+      <option name="TEST_SEARCH_SCOPE">
253
+        <value defaultName="singleModule" />
254
+      </option>
255
+      <envs />
256
+      <patterns />
257
+    </configuration>
258
+    <configuration default="true" type="Remote" factoryName="Remote">
259
+      <option name="USE_SOCKET_TRANSPORT" value="true" />
260
+      <option name="SERVER_MODE" value="false" />
261
+      <option name="SHMEM_ADDRESS" value="javadebug" />
262
+      <option name="HOST" value="localhost" />
263
+      <option name="PORT" value="5005" />
264
+    </configuration>
265
+    <configuration default="true" type="TestNG" factoryName="TestNG">
266
+      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
267
+      <module name="" />
268
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
269
+      <option name="ALTERNATIVE_JRE_PATH" />
270
+      <option name="SUITE_NAME" />
271
+      <option name="PACKAGE_NAME" />
272
+      <option name="MAIN_CLASS_NAME" />
273
+      <option name="METHOD_NAME" />
274
+      <option name="GROUP_NAME" />
275
+      <option name="TEST_OBJECT" value="CLASS" />
276
+      <option name="VM_PARAMETERS" value="-ea" />
277
+      <option name="PARAMETERS" />
278
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
279
+      <option name="OUTPUT_DIRECTORY" />
280
+      <option name="ANNOTATION_TYPE" />
281
+      <option name="ENV_VARIABLES" />
282
+      <option name="PASS_PARENT_ENVS" value="true" />
283
+      <option name="TEST_SEARCH_SCOPE">
284
+        <value defaultName="singleModule" />
285
+      </option>
286
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
287
+      <option name="PROPERTIES_FILE" />
288
+      <envs />
289
+      <properties />
290
+      <listeners />
291
+    </configuration>
292
+    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
293
+      <module name="" />
294
+      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
295
+      <option name="PROGRAM_PARAMETERS" />
296
+      <predefined_log_file id="idea.log" enabled="true" />
297
+    </configuration>
298
+    <list size="2">
299
+      <item index="0" class="java.lang.String" itemvalue="JUnit.Question1Test" />
300
+      <item index="1" class="java.lang.String" itemvalue="JUnit.Question1Test.doSomething4" />
301
+    </list>
302
+    <recent_temporary>
303
+      <list size="2">
304
+        <item index="0" class="java.lang.String" itemvalue="JUnit.Question1Test.doSomething4" />
305
+        <item index="1" class="java.lang.String" itemvalue="JUnit.Question1Test" />
306
+      </list>
307
+    </recent_temporary>
308
+  </component>
309
+  <component name="ShelveChangesManager" show_recycled="false">
310
+    <option name="remove_strategy" value="false" />
311
+  </component>
312
+  <component name="SvnConfiguration">
313
+    <configuration />
314
+  </component>
315
+  <component name="TaskManager">
316
+    <task active="true" id="Default" summary="Default task">
317
+      <changelist id="ff0f55eb-552a-45f4-8a74-866e22f63e9a" name="Default" comment="" />
318
+      <created>1541012263419</created>
319
+      <option name="number" value="Default" />
320
+      <option name="presentableId" value="Default" />
321
+      <updated>1541012263419</updated>
322
+      <workItem from="1541012264832" duration="4887000" />
323
+    </task>
324
+    <servers />
325
+  </component>
326
+  <component name="TestHistory">
327
+    <history-entry file="Question1Test - 2018.10.31 at 15h 24m 54s.xml">
328
+      <configuration name="Question1Test" configurationId="JUnit" />
329
+    </history-entry>
330
+    <history-entry file="Question1Test - 2018.10.31 at 15h 26m 53s.xml">
331
+      <configuration name="Question1Test" configurationId="JUnit" />
332
+    </history-entry>
333
+    <history-entry file="Question1Test - 2018.10.31 at 15h 27m 24s.xml">
334
+      <configuration name="Question1Test" configurationId="JUnit" />
335
+    </history-entry>
336
+    <history-entry file="Question1Test - 2018.10.31 at 15h 29m 22s.xml">
337
+      <configuration name="Question1Test" configurationId="JUnit" />
338
+    </history-entry>
339
+    <history-entry file="Question1Test - 2018.10.31 at 15h 33m 31s.xml">
340
+      <configuration name="Question1Test" configurationId="JUnit" />
341
+    </history-entry>
342
+    <history-entry file="Question1Test - 2018.10.31 at 15h 33m 45s.xml">
343
+      <configuration name="Question1Test" configurationId="JUnit" />
344
+    </history-entry>
345
+    <history-entry file="Question1Test - 2018.10.31 at 15h 35m 09s.xml">
346
+      <configuration name="Question1Test" configurationId="JUnit" />
347
+    </history-entry>
348
+    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 35m 53s.xml">
349
+      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
350
+    </history-entry>
351
+    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 36m 27s.xml">
352
+      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
353
+    </history-entry>
354
+    <history-entry file="Question1Test_doSomething4 - 2018.10.31 at 15h 37m 22s.xml">
355
+      <configuration name="Question1Test.doSomething4" configurationId="JUnit" />
356
+    </history-entry>
357
+  </component>
358
+  <component name="TimeTrackingManager">
359
+    <option name="totallyTimeSpent" value="4887000" />
360
+  </component>
361
+  <component name="ToolWindowManager">
362
+    <frame x="0" y="23" width="1674" height="971" extended-state="6" />
363
+    <editor active="true" />
364
+    <layout>
365
+      <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" />
366
+      <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" />
367
+      <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" />
368
+      <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" />
369
+      <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" />
370
+      <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" />
371
+      <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" />
372
+      <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" />
373
+      <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" />
374
+      <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" />
375
+      <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" />
376
+      <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" />
377
+      <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" />
378
+      <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" />
379
+      <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" />
380
+      <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" />
381
+      <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" />
382
+      <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" />
383
+      <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" />
384
+      <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" />
385
+      <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" />
386
+      <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" />
387
+      <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" />
388
+      <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" />
389
+      <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" />
390
+      <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" />
391
+      <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" />
392
+    </layout>
393
+  </component>
394
+  <component name="TypeScriptGeneratedFilesManager">
395
+    <option name="version" value="1" />
396
+  </component>
397
+  <component name="VcsContentAnnotationSettings">
398
+    <option name="myLimit" value="2678400000" />
399
+  </component>
400
+  <component name="XDebuggerManager">
401
+    <breakpoint-manager />
402
+    <watches-manager />
403
+  </component>
404
+  <component name="editorHistoryManager">
405
+    <entry file="file://$PROJECT_DIR$/pom.xml">
406
+      <provider selected="true" editor-type-id="text-editor">
407
+        <state relative-caret-position="0">
408
+          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
409
+          <folding />
410
+        </state>
411
+      </provider>
412
+    </entry>
413
+    <entry file="file://$PROJECT_DIR$/src/test/java/Question1Test.java">
414
+      <provider selected="true" editor-type-id="text-editor">
415
+        <state relative-caret-position="136">
416
+          <caret line="8" column="37" lean-forward="false" selection-start-line="8" selection-start-column="37" selection-end-line="8" selection-end-column="37" />
417
+          <folding />
418
+        </state>
419
+      </provider>
420
+    </entry>
421
+    <entry file="file://$PROJECT_DIR$/src/main/java/Question1.java">
422
+      <provider selected="true" editor-type-id="text-editor">
423
+        <state relative-caret-position="-302">
424
+          <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
425
+          <folding>
426
+            <element signature="e#1408#1409#0" expanded="true" />
427
+            <element signature="e#1456#1457#0" expanded="true" />
428
+          </folding>
429
+        </state>
430
+      </provider>
431
+    </entry>
432
+    <entry file="file://$PROJECT_DIR$/README.md">
433
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
434
+        <state split_layout="SPLIT">
435
+          <first_editor relative-caret-position="102">
436
+            <caret line="6" column="39" lean-forward="false" selection-start-line="6" selection-start-column="39" selection-end-line="6" selection-end-column="39" />
437
+            <folding />
438
+          </first_editor>
439
+          <second_editor />
440
+        </state>
441
+      </provider>
442
+    </entry>
443
+  </component>
444
+  <component name="masterDetails">
445
+    <states>
446
+      <state key="ProjectJDKs.UI">
447
+        <settings>
448
+          <last-edited>1.8</last-edited>
449
+          <splitter-proportions>
450
+            <option name="proportions">
451
+              <list>
452
+                <option value="0.2" />
453
+              </list>
454
+            </option>
455
+          </splitter-proportions>
456
+        </settings>
457
+      </state>
458
+    </states>
459
+  </component>
460
+</project>

+ 21
- 0
README.md Bestand weergeven

@@ -0,0 +1,21 @@
1
+# Riddle Me This
2
+
3
+There are 6 pieces of code in the Question1 class.
4
+
5
+Each does something.
6
+
7
+Your job is to figure out what each one does.
8
+
9
+Add a comment in front of each method describing what you think
10
+it does.
11
+
12
+In Question1Test, there are a number of runs of inputs.
13
+
14
+Run all the tests, (or just the one for the method you're trying to figure out)
15
+and look at the outputs. The inputs and outputs should
16
+give you some ideas as to what the method does.
17
+
18
+when you have figured out each method, do a commit.
19
+Then do a PR on the original repo.
20
+
21
+

+ 16
- 0
Samples.iml Bestand weergeven

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10
+      <excludeFolder url="file://$MODULE_DIR$/target" />
11
+    </content>
12
+    <orderEntry type="inheritedJdk" />
13
+    <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="library" name="Maven: junit:junit:4.0" level="project" />
15
+  </component>
16
+</module>

+ 19
- 0
pom.xml Bestand weergeven

@@ -0,0 +1,19 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <modelVersion>4.0.0</modelVersion>
6
+
7
+    <groupId>rocks.zipcode.sample</groupId>
8
+    <artifactId>Samples</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+    <dependencies>
11
+        <dependency>
12
+            <groupId>junit</groupId>
13
+            <artifactId>junit</artifactId>
14
+            <version>4.0</version>
15
+        </dependency>
16
+    </dependencies>
17
+
18
+
19
+</project>

+ 89
- 0
src/main/java/Question1.java Bestand weergeven

@@ -0,0 +1,89 @@
1
+public class Question1 {
2
+
3
+    public static void doSomething0() {
4
+        int s = 6;
5
+
6
+        int r = (int) (Math.random() * s) + 1;
7
+
8
+        System.out.println(r);
9
+    }
10
+
11
+    public static void doSomething1(int n) {
12
+        int foo = 1;
13
+
14
+        while (foo <= n / 2) {
15
+            foo *= 2;
16
+        }
17
+
18
+        while (foo > 0) {
19
+
20
+            if (n < foo) {
21
+                System.out.print(0);
22
+            } else {
23
+                System.out.print(1);
24
+                n -= foo;
25
+            }
26
+
27
+            foo /= 2;
28
+        }
29
+
30
+        System.out.println();
31
+    }
32
+
33
+    public static void doSomething2(int n) {
34
+        int i = 0;
35
+        int p = 1;
36
+
37
+
38
+        while (i <= n) {
39
+            System.out.println(i + " " + p);
40
+            p = 2 * p;
41
+            i = i + 1;
42
+        }
43
+    }
44
+
45
+    public static void doSomething3(double c) {
46
+        double epsilon = 1e-15;
47
+        double t = c;
48
+
49
+        while (Math.abs(t - c/t) > epsilon*t) {
50
+            t = (c/t + t) / 2.0;
51
+        }
52
+
53
+        System.out.println(t);
54
+    }
55
+
56
+    public static void doSomething4(double x) {
57
+        x = x % (2 * Math.PI);
58
+
59
+        double term = 1.0;
60
+        double sum  = 0.0;
61
+
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;
66
+        }
67
+        System.out.printf("%.4f\t%.8f\n", x, sum);
68
+    }
69
+
70
+    public static int getInt(int n) {
71
+        return (int) (Math.random() * n);
72
+    }
73
+
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;
85
+            }
86
+        }
87
+        return k;
88
+    }
89
+}

+ 66
- 0
src/test/java/Question1Test.java Bestand weergeven

@@ -0,0 +1,66 @@
1
+import static org.junit.Assert.*;
2
+
3
+public class Question1Test {
4
+
5
+    @org.junit.Test
6
+    public void doSomething0() {
7
+        System.out.println("\ndoS0:\n");
8
+        for (int i = 0; i <= 20; i++)
9
+            Question1.doSomething0();
10
+    }
11
+
12
+    @org.junit.Test
13
+    public void doSomething1() {
14
+        System.out.println("\ndoS1:\n");
15
+
16
+        Question1.doSomething1(2340);
17
+        Question1.doSomething1(5);
18
+        Question1.doSomething1(1456234);
19
+    }
20
+
21
+    @org.junit.Test
22
+    public void doSomething2() {
23
+        System.out.println("\ndoS2:\n");
24
+
25
+        Question1.doSomething2(4);
26
+        Question1.doSomething2(12);
27
+        Question1.doSomething2(31);
28
+        Question1.doSomething2(9);
29
+    }
30
+
31
+    @org.junit.Test
32
+    public void doSomething3() {
33
+        System.out.println("\ndoS3:\n");
34
+
35
+        Question1.doSomething3(2.0);
36
+        Question1.doSomething3(225.0);
37
+        Question1.doSomething3(5.0);
38
+        Question1.doSomething3(16.0);
39
+    }
40
+
41
+    @org.junit.Test
42
+    public void doSomething4() {
43
+        System.out.println("\ndoS4:\n");
44
+
45
+        Question1.doSomething4(1.0);
46
+        Question1.doSomething4(0.5);
47
+        Question1.doSomething4(-1.0);
48
+        Question1.doSomething4(0.0);
49
+        Question1.doSomething4(360.0);
50
+    }
51
+
52
+    @org.junit.Test
53
+    public void doSomething5() {
54
+        System.out.println("\ndoS5:\n");
55
+
56
+        int x1 = 13;
57
+        int x = Question1.doSomething5(x1);
58
+        System.out.printf("%d %d\n", x1, x);
59
+        x1 = 25;
60
+        x = Question1.doSomething5(x1);
61
+        System.out.printf("%d %d\n", x1, x);
62
+        x1 = 52;
63
+        x = Question1.doSomething5(x1);
64
+        System.out.printf("%d %d\n", x1, x);
65
+    }
66
+}

BIN
target/classes/Question1.class Bestand weergeven


BIN
target/test-classes/Question1Test.class Bestand weergeven