Selaa lähdekoodia

finished tests & solns

Kr Younger 6 vuotta sitten
vanhempi
commit
4da0dd253b
7 muutettua tiedostoa jossa 3 lisäystä ja 302 poistoa
  1. 2
    0
      .gitignore
  2. 0
    9
      .idea/FirstSaturday.iml
  3. 0
    4
      .idea/misc.xml
  4. 0
    8
      .idea/modules.xml
  5. 0
    6
      .idea/vcs.xml
  6. 0
    274
      .idea/workspace.xml
  7. 1
    1
      WriteLoops.java

+ 2
- 0
.gitignore Näytä tiedosto

@@ -21,3 +21,5 @@
21 21
 
22 22
 # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23 23
 hs_err_pid*
24
+
25
+.idea/*

+ 0
- 9
.idea/FirstSaturday.iml Näytä tiedosto

@@ -1,9 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<module type="JAVA_MODULE" version="4">
3
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
-    <exclude-output />
5
-    <content url="file://$MODULE_DIR$" />
6
-    <orderEntry type="inheritedJdk" />
7
-    <orderEntry type="sourceFolder" forTests="false" />
8
-  </component>
9
-</module>

+ 0
- 4
.idea/misc.xml Näytä tiedosto

@@ -1,4 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
4
-</project>

+ 0
- 8
.idea/modules.xml Näytä tiedosto

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

+ 0
- 6
.idea/vcs.xml Näytä tiedosto

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

+ 0
- 274
.idea/workspace.xml Näytä tiedosto

@@ -1,274 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="ChangeListManager">
4
-    <list default="true" id="15642ba7-9000-4f98-9893-895a87389cf7" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/WriteLoops.java" afterPath="$PROJECT_DIR$/WriteLoops.java" />
6
-    </list>
7
-    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
-    <option name="TRACKING_ENABLED" value="true" />
9
-    <option name="SHOW_DIALOG" value="false" />
10
-    <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
-    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
-    <option name="LAST_RESOLUTION" value="IGNORE" />
13
-  </component>
14
-  <component name="FileEditorManager">
15
-    <leaf>
16
-      <file leaf-file-name="WriteLoops.java" pinned="false" current-in-tab="true">
17
-        <entry file="file://$PROJECT_DIR$/WriteLoops.java">
18
-          <provider selected="true" editor-type-id="text-editor">
19
-            <state relative-caret-position="300">
20
-              <caret line="402" column="42" lean-forward="true" selection-start-line="402" selection-start-column="42" selection-end-line="402" selection-end-column="42" />
21
-              <folding />
22
-            </state>
23
-          </provider>
24
-        </entry>
25
-      </file>
26
-    </leaf>
27
-  </component>
28
-  <component name="Git.Settings">
29
-    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
30
-  </component>
31
-  <component name="GradleLocalSettings">
32
-    <option name="externalProjectsViewState">
33
-      <projects_view />
34
-    </option>
35
-    <option name="projectSyncType">
36
-      <map>
37
-        <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
38
-      </map>
39
-    </option>
40
-  </component>
41
-  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
42
-  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
43
-  <component name="JsGulpfileManager">
44
-    <detection-done>true</detection-done>
45
-    <sorting>DEFINITION_ORDER</sorting>
46
-  </component>
47
-  <component name="ProjectFrameBounds">
48
-    <option name="x" value="56" />
49
-    <option name="y" value="80" />
50
-    <option name="width" value="1440" />
51
-    <option name="height" value="828" />
52
-  </component>
53
-  <component name="ProjectView">
54
-    <navigator currentView="ProjectPane" proportions="" version="1">
55
-      <flattenPackages />
56
-      <showMembers />
57
-      <showModules />
58
-      <showLibraryContents />
59
-      <hideEmptyPackages />
60
-      <abbreviatePackageNames />
61
-      <autoscrollToSource />
62
-      <autoscrollFromSource />
63
-      <sortByType />
64
-      <manualOrder />
65
-      <foldersAlwaysOnTop value="true" />
66
-    </navigator>
67
-    <panes>
68
-      <pane id="Scope" />
69
-      <pane id="AndroidView" />
70
-      <pane id="ProjectPane">
71
-        <subPane>
72
-          <expand>
73
-            <path>
74
-              <item name="FirstSaturday" type="b2602c69:ProjectViewProjectNode" />
75
-              <item name="FirstSaturday" type="462c0819:PsiDirectoryNode" />
76
-            </path>
77
-          </expand>
78
-          <select />
79
-        </subPane>
80
-      </pane>
81
-      <pane id="PackagesPane" />
82
-      <pane id="Scratches" />
83
-    </panes>
84
-  </component>
85
-  <component name="PropertiesComponent">
86
-    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
87
-    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
88
-    <property name="WebServerToolWindowFactoryState" value="false" />
89
-    <property name="aspect.path.notification.shown" value="true" />
90
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
91
-  </component>
92
-  <component name="RunDashboard">
93
-    <option name="ruleStates">
94
-      <list>
95
-        <RuleState>
96
-          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
97
-        </RuleState>
98
-        <RuleState>
99
-          <option name="name" value="StatusDashboardGroupingRule" />
100
-        </RuleState>
101
-      </list>
102
-    </option>
103
-  </component>
104
-  <component name="RunManager">
105
-    <configuration default="true" type="Applet" factoryName="Applet">
106
-      <option name="WIDTH" value="400" />
107
-      <option name="HEIGHT" value="300" />
108
-      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
109
-      <module />
110
-    </configuration>
111
-    <configuration default="true" type="Application" factoryName="Application">
112
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
113
-      <option name="MAIN_CLASS_NAME" />
114
-      <option name="VM_PARAMETERS" />
115
-      <option name="PROGRAM_PARAMETERS" />
116
-      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
117
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
118
-      <option name="ALTERNATIVE_JRE_PATH" />
119
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
120
-      <option name="ENV_VARIABLES" />
121
-      <option name="PASS_PARENT_ENVS" value="true" />
122
-      <module name="" />
123
-      <envs />
124
-    </configuration>
125
-    <configuration default="true" type="JUnit" factoryName="JUnit">
126
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
127
-      <module name="" />
128
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
129
-      <option name="ALTERNATIVE_JRE_PATH" />
130
-      <option name="PACKAGE_NAME" />
131
-      <option name="MAIN_CLASS_NAME" />
132
-      <option name="METHOD_NAME" />
133
-      <option name="TEST_OBJECT" value="class" />
134
-      <option name="VM_PARAMETERS" value="-ea" />
135
-      <option name="PARAMETERS" />
136
-      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
137
-      <option name="ENV_VARIABLES" />
138
-      <option name="PASS_PARENT_ENVS" value="true" />
139
-      <option name="TEST_SEARCH_SCOPE">
140
-        <value defaultName="singleModule" />
141
-      </option>
142
-      <envs />
143
-      <patterns />
144
-    </configuration>
145
-    <configuration default="true" type="Remote" factoryName="Remote">
146
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
147
-      <option name="SERVER_MODE" value="false" />
148
-      <option name="SHMEM_ADDRESS" value="javadebug" />
149
-      <option name="HOST" value="localhost" />
150
-      <option name="PORT" value="5005" />
151
-    </configuration>
152
-    <configuration default="true" type="TestNG" factoryName="TestNG">
153
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
154
-      <module name="" />
155
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
156
-      <option name="ALTERNATIVE_JRE_PATH" />
157
-      <option name="SUITE_NAME" />
158
-      <option name="PACKAGE_NAME" />
159
-      <option name="MAIN_CLASS_NAME" />
160
-      <option name="METHOD_NAME" />
161
-      <option name="GROUP_NAME" />
162
-      <option name="TEST_OBJECT" value="CLASS" />
163
-      <option name="VM_PARAMETERS" value="-ea" />
164
-      <option name="PARAMETERS" />
165
-      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
166
-      <option name="OUTPUT_DIRECTORY" />
167
-      <option name="ANNOTATION_TYPE" />
168
-      <option name="ENV_VARIABLES" />
169
-      <option name="PASS_PARENT_ENVS" value="true" />
170
-      <option name="TEST_SEARCH_SCOPE">
171
-        <value defaultName="singleModule" />
172
-      </option>
173
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
174
-      <option name="PROPERTIES_FILE" />
175
-      <envs />
176
-      <properties />
177
-      <listeners />
178
-    </configuration>
179
-    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
180
-      <module name="" />
181
-      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
182
-      <option name="PROGRAM_PARAMETERS" />
183
-      <predefined_log_file id="idea.log" enabled="true" />
184
-    </configuration>
185
-  </component>
186
-  <component name="ShelveChangesManager" show_recycled="false">
187
-    <option name="remove_strategy" value="false" />
188
-  </component>
189
-  <component name="SvnConfiguration">
190
-    <configuration />
191
-  </component>
192
-  <component name="TaskManager">
193
-    <task active="true" id="Default" summary="Default task">
194
-      <changelist id="15642ba7-9000-4f98-9893-895a87389cf7" name="Default" comment="" />
195
-      <created>1538148602766</created>
196
-      <option name="number" value="Default" />
197
-      <option name="presentableId" value="Default" />
198
-      <updated>1538148602766</updated>
199
-      <workItem from="1538148604751" duration="59000" />
200
-    </task>
201
-    <servers />
202
-  </component>
203
-  <component name="TimeTrackingManager">
204
-    <option name="totallyTimeSpent" value="59000" />
205
-  </component>
206
-  <component name="ToolWindowManager">
207
-    <frame x="56" y="80" width="1440" height="828" extended-state="0" />
208
-    <editor active="true" />
209
-    <layout>
210
-      <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" />
211
-      <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" />
212
-      <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" />
213
-      <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" />
214
-      <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" />
215
-      <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" />
216
-      <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" />
217
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
218
-      <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" />
219
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
220
-      <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" />
221
-      <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" />
222
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
223
-      <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" />
224
-      <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" />
225
-      <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" />
226
-      <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" />
227
-      <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" />
228
-      <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" />
229
-      <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" />
230
-      <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" />
231
-      <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" />
232
-      <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" />
233
-      <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" />
234
-      <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" />
235
-      <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" />
236
-    </layout>
237
-  </component>
238
-  <component name="TypeScriptGeneratedFilesManager">
239
-    <option name="version" value="1" />
240
-  </component>
241
-  <component name="VcsContentAnnotationSettings">
242
-    <option name="myLimit" value="2678400000" />
243
-  </component>
244
-  <component name="XDebuggerManager">
245
-    <breakpoint-manager />
246
-    <watches-manager />
247
-  </component>
248
-  <component name="editorHistoryManager">
249
-    <entry file="file://$PROJECT_DIR$/WriteLoops.java">
250
-      <provider selected="true" editor-type-id="text-editor">
251
-        <state relative-caret-position="300">
252
-          <caret line="402" column="42" lean-forward="true" selection-start-line="402" selection-start-column="42" selection-end-line="402" selection-end-column="42" />
253
-          <folding />
254
-        </state>
255
-      </provider>
256
-    </entry>
257
-  </component>
258
-  <component name="masterDetails">
259
-    <states>
260
-      <state key="ProjectJDKs.UI">
261
-        <settings>
262
-          <last-edited>1.8</last-edited>
263
-          <splitter-proportions>
264
-            <option name="proportions">
265
-              <list>
266
-                <option value="0.2" />
267
-              </list>
268
-            </option>
269
-          </splitter-proportions>
270
-        </settings>
271
-      </state>
272
-    </states>
273
-  </component>
274
-</project>

+ 1
- 1
WriteLoops.java Näytä tiedosto

@@ -8,7 +8,7 @@ import java.util.function.Supplier;
8 8
  * Writeloops get you thinking about how to do different things with loops.
9 9
  *
10 10
  * @author kyounger
11
- * @version 1.1
11
+ * @version 1.2
12 12
  */
13 13
 public class WriteLoops {
14 14