Roy преди 6 години
родител
ревизия
1216240b41

+ 1
- 0
.idea/.name Целия файл

@@ -0,0 +1 @@
1
+question1

+ 16
- 0
.idea/compiler.xml Целия файл

@@ -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="question1" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="question1" target="1.8" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
.idea/libraries/Maven__com_h2database_h2_1_4_197.xml Целия файл

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

+ 13
- 0
.idea/libraries/Maven__com_j256_ormlite_ormlite_core_4_48.xml Целия файл

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

+ 13
- 0
.idea/libraries/Maven__com_j256_ormlite_ormlite_jdbc_4_48.xml Целия файл

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

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Целия файл

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

+ 13
- 0
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml Целия файл

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

+ 13
- 0
.idea/misc.xml Целия файл

@@ -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_10" project-jdk-name="10" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
13
+</project>

+ 8
- 0
.idea/modules.xml Целия файл

@@ -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$/question1.iml" filepath="$PROJECT_DIR$/question1.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml Целия файл

@@ -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>

+ 427
- 0
.idea/workspace.xml Целия файл

@@ -0,0 +1,427 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="9fcbcb49-1cc0-4134-bd0c-de9f540663c7" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/question1.iml" beforeDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/Group.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Group.java" afterDir="false" />
7
+    </list>
8
+    <ignored path="$PROJECT_DIR$/target/" />
9
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
+    <option name="TRACKING_ENABLED" value="true" />
11
+    <option name="SHOW_DIALOG" value="false" />
12
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
13
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14
+    <option name="LAST_RESOLUTION" value="IGNORE" />
15
+  </component>
16
+  <component name="FileEditorManager">
17
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
18
+      <file leaf-file-name="Group.java" pinned="false" current-in-tab="true">
19
+        <entry file="file://$PROJECT_DIR$/src/main/java/Group.java">
20
+          <provider selected="true" editor-type-id="text-editor">
21
+            <state relative-caret-position="450">
22
+              <caret line="36" selection-start-line="36" selection-end-line="36" />
23
+            </state>
24
+          </provider>
25
+        </entry>
26
+      </file>
27
+      <file leaf-file-name="CheckPerson.java" pinned="false" current-in-tab="false">
28
+        <entry file="file://$PROJECT_DIR$/src/main/java/CheckPerson.java">
29
+          <provider selected="true" editor-type-id="text-editor">
30
+            <state>
31
+              <caret column="17" selection-start-column="17" selection-end-column="17" />
32
+            </state>
33
+          </provider>
34
+        </entry>
35
+      </file>
36
+      <file leaf-file-name="MainApplication.java" pinned="false" current-in-tab="false">
37
+        <entry file="file://$PROJECT_DIR$/src/main/java/MainApplication.java">
38
+          <provider selected="true" editor-type-id="text-editor">
39
+            <state relative-caret-position="-142">
40
+              <caret line="3" column="13" selection-start-line="3" selection-start-column="13" selection-end-line="3" selection-end-column="13" />
41
+            </state>
42
+          </provider>
43
+        </entry>
44
+      </file>
45
+      <file leaf-file-name="GroupTest.java" pinned="false" current-in-tab="false">
46
+        <entry file="file://$PROJECT_DIR$/src/test/java/GroupTest.java">
47
+          <provider selected="true" editor-type-id="text-editor">
48
+            <state relative-caret-position="-156">
49
+              <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
50
+            </state>
51
+          </provider>
52
+        </entry>
53
+      </file>
54
+      <file leaf-file-name="PersonTest.java" pinned="false" current-in-tab="false">
55
+        <entry file="file://$PROJECT_DIR$/src/test/java/PersonTest.java">
56
+          <provider selected="true" editor-type-id="text-editor">
57
+            <state relative-caret-position="30">
58
+              <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
59
+            </state>
60
+          </provider>
61
+        </entry>
62
+      </file>
63
+      <file leaf-file-name="Person.java" pinned="false" current-in-tab="false">
64
+        <entry file="file://$PROJECT_DIR$/src/main/java/Person.java">
65
+          <provider selected="true" editor-type-id="text-editor">
66
+            <state relative-caret-position="-85">
67
+              <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
68
+            </state>
69
+          </provider>
70
+        </entry>
71
+      </file>
72
+    </leaf>
73
+  </component>
74
+  <component name="Git.Settings">
75
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
76
+  </component>
77
+  <component name="IdeDocumentHistory">
78
+    <option name="CHANGED_PATHS">
79
+      <list>
80
+        <option value="$PROJECT_DIR$/src/main/java/Group.java" />
81
+      </list>
82
+    </option>
83
+  </component>
84
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
85
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
86
+  <component name="JsGulpfileManager">
87
+    <detection-done>true</detection-done>
88
+    <sorting>DEFINITION_ORDER</sorting>
89
+  </component>
90
+  <component name="NodePackageJsonFileManager">
91
+    <packageJsonPaths />
92
+  </component>
93
+  <component name="ProjectFrameBounds">
94
+    <option name="y" value="23" />
95
+    <option name="width" value="1280" />
96
+    <option name="height" value="716" />
97
+  </component>
98
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
99
+  <component name="ProjectView">
100
+    <navigator proportions="" version="1">
101
+      <foldersAlwaysOnTop value="true" />
102
+    </navigator>
103
+    <panes>
104
+      <pane id="AndroidView" />
105
+      <pane id="PackagesPane" />
106
+      <pane id="ProjectPane">
107
+        <subPane>
108
+          <expand>
109
+            <path>
110
+              <item name="question1" type="b2602c69:ProjectViewProjectNode" />
111
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
112
+            </path>
113
+            <path>
114
+              <item name="question1" type="b2602c69:ProjectViewProjectNode" />
115
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
116
+              <item name="src" type="462c0819:PsiDirectoryNode" />
117
+            </path>
118
+            <path>
119
+              <item name="question1" type="b2602c69:ProjectViewProjectNode" />
120
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
121
+              <item name="src" type="462c0819:PsiDirectoryNode" />
122
+              <item name="main" type="462c0819:PsiDirectoryNode" />
123
+            </path>
124
+            <path>
125
+              <item name="question1" type="b2602c69:ProjectViewProjectNode" />
126
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
127
+              <item name="src" type="462c0819:PsiDirectoryNode" />
128
+              <item name="main" type="462c0819:PsiDirectoryNode" />
129
+              <item name="java" type="462c0819:PsiDirectoryNode" />
130
+            </path>
131
+            <path>
132
+              <item name="question1" type="b2602c69:ProjectViewProjectNode" />
133
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
134
+              <item name="src" type="462c0819:PsiDirectoryNode" />
135
+              <item name="test" type="462c0819:PsiDirectoryNode" />
136
+            </path>
137
+            <path>
138
+              <item name="question1" type="b2602c69:ProjectViewProjectNode" />
139
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
140
+              <item name="src" type="462c0819:PsiDirectoryNode" />
141
+              <item name="test" type="462c0819:PsiDirectoryNode" />
142
+              <item name="java" type="462c0819:PsiDirectoryNode" />
143
+            </path>
144
+          </expand>
145
+          <select />
146
+        </subPane>
147
+      </pane>
148
+      <pane id="Scope" />
149
+    </panes>
150
+  </component>
151
+  <component name="PropertiesComponent">
152
+    <property name="WebServerToolWindowFactoryState" value="false" />
153
+    <property name="aspect.path.notification.shown" value="true" />
154
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
155
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
156
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
157
+  </component>
158
+  <component name="RunDashboard">
159
+    <option name="ruleStates">
160
+      <list>
161
+        <RuleState>
162
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
163
+        </RuleState>
164
+        <RuleState>
165
+          <option name="name" value="StatusDashboardGroupingRule" />
166
+        </RuleState>
167
+      </list>
168
+    </option>
169
+  </component>
170
+  <component name="RunManager" selected="JUnit.All in question1">
171
+    <configuration default="true" type="Application" factoryName="Application">
172
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
173
+    </configuration>
174
+    <configuration name="All in question1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
175
+      <module name="question1" />
176
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
177
+      <option name="ALTERNATIVE_JRE_PATH" />
178
+      <option name="PACKAGE_NAME" value="" />
179
+      <option name="MAIN_CLASS_NAME" />
180
+      <option name="METHOD_NAME" />
181
+      <option name="TEST_OBJECT" value="package" />
182
+      <option name="VM_PARAMETERS" value="-ea" />
183
+      <option name="PARAMETERS" />
184
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
185
+      <option name="PASS_PARENT_ENVS" value="true" />
186
+      <option name="TEST_SEARCH_SCOPE">
187
+        <value defaultName="singleModule" />
188
+      </option>
189
+      <patterns />
190
+    </configuration>
191
+    <configuration name="GroupTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
192
+      <module name="question1" />
193
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
194
+      <option name="ALTERNATIVE_JRE_PATH" />
195
+      <option name="PACKAGE_NAME" value="" />
196
+      <option name="MAIN_CLASS_NAME" value="GroupTest" />
197
+      <option name="METHOD_NAME" />
198
+      <option name="TEST_OBJECT" value="class" />
199
+      <option name="VM_PARAMETERS" value="-ea" />
200
+      <option name="PARAMETERS" />
201
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
202
+      <option name="PASS_PARENT_ENVS" value="true" />
203
+      <option name="TEST_SEARCH_SCOPE">
204
+        <value defaultName="singleModule" />
205
+      </option>
206
+      <patterns />
207
+    </configuration>
208
+    <configuration default="true" type="JUnit" factoryName="JUnit">
209
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
210
+      <option name="ALTERNATIVE_JRE_PATH" />
211
+      <option name="PACKAGE_NAME" />
212
+      <option name="MAIN_CLASS_NAME" />
213
+      <option name="METHOD_NAME" />
214
+      <option name="TEST_OBJECT" value="class" />
215
+      <option name="VM_PARAMETERS" value="-ea" />
216
+      <option name="PARAMETERS" />
217
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
218
+      <option name="PASS_PARENT_ENVS" value="true" />
219
+      <option name="TEST_SEARCH_SCOPE">
220
+        <value defaultName="singleModule" />
221
+      </option>
222
+      <patterns />
223
+    </configuration>
224
+    <configuration default="true" type="TestNG" factoryName="TestNG">
225
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
226
+      <option name="ALTERNATIVE_JRE_PATH" />
227
+      <option name="SUITE_NAME" />
228
+      <option name="PACKAGE_NAME" />
229
+      <option name="MAIN_CLASS_NAME" />
230
+      <option name="METHOD_NAME" />
231
+      <option name="GROUP_NAME" />
232
+      <option name="TEST_OBJECT" value="CLASS" />
233
+      <option name="VM_PARAMETERS" value="-ea" />
234
+      <option name="PARAMETERS" />
235
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
236
+      <option name="OUTPUT_DIRECTORY" />
237
+      <option name="PASS_PARENT_ENVS" value="true" />
238
+      <option name="TEST_SEARCH_SCOPE">
239
+        <value defaultName="singleModule" />
240
+      </option>
241
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
242
+      <option name="PROPERTIES_FILE" />
243
+      <properties />
244
+      <listeners />
245
+    </configuration>
246
+    <list>
247
+      <item itemvalue="JUnit.GroupTest" />
248
+      <item itemvalue="JUnit.All in question1" />
249
+    </list>
250
+    <recent_temporary>
251
+      <list>
252
+        <item itemvalue="JUnit.All in question1" />
253
+        <item itemvalue="JUnit.GroupTest" />
254
+      </list>
255
+    </recent_temporary>
256
+  </component>
257
+  <component name="SvnConfiguration">
258
+    <configuration />
259
+  </component>
260
+  <component name="TaskManager">
261
+    <task active="true" id="Default" summary="Default task">
262
+      <changelist id="9fcbcb49-1cc0-4134-bd0c-de9f540663c7" name="Default" comment="" />
263
+      <created>1529519210243</created>
264
+      <option name="number" value="Default" />
265
+      <option name="presentableId" value="Default" />
266
+      <updated>1529519210243</updated>
267
+      <workItem from="1529519224343" duration="43000" />
268
+      <workItem from="1530043895405" duration="830000" />
269
+      <workItem from="1530132813733" duration="818000" />
270
+      <workItem from="1530489083666" duration="1658000" />
271
+    </task>
272
+    <servers />
273
+  </component>
274
+  <component name="TestHistory">
275
+    <history-entry file="GroupTest - 2018.07.01 at 19h 51m 38s.xml">
276
+      <configuration name="GroupTest" configurationId="JUnit" />
277
+    </history-entry>
278
+    <history-entry file="All_in_question1 - 2018.07.01 at 19h 57m 38s.xml">
279
+      <configuration name="All in question1" configurationId="JUnit" />
280
+    </history-entry>
281
+  </component>
282
+  <component name="TimeTrackingManager">
283
+    <option name="totallyTimeSpent" value="3349000" />
284
+  </component>
285
+  <component name="ToolWindowManager">
286
+    <frame x="0" y="23" width="1280" height="716" extended-state="0" />
287
+    <editor active="true" />
288
+    <layout>
289
+      <window_info anchor="right" id="Palette" order="3" />
290
+      <window_info anchor="bottom" id="TODO" order="6" />
291
+      <window_info anchor="bottom" id="Messages" />
292
+      <window_info anchor="right" id="Palette&#9;" order="3" />
293
+      <window_info id="Image Layers" order="2" />
294
+      <window_info anchor="right" id="Capture Analysis" order="3" />
295
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
296
+      <window_info anchor="right" id="Maven Projects" order="3" />
297
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
298
+      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32866043" />
299
+      <window_info anchor="bottom" id="Version Control" order="7" />
300
+      <window_info anchor="bottom" id="Terminal" order="7" />
301
+      <window_info id="Capture Tool" order="2" />
302
+      <window_info id="Designer" order="2" />
303
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25390625" />
304
+      <window_info anchor="right" id="Database" order="3" />
305
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
306
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
307
+      <window_info id="UI Designer" order="2" />
308
+      <window_info anchor="right" id="Theme Preview" order="3" />
309
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
310
+      <window_info id="Favorites" order="2" side_tool="true" />
311
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
312
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
313
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
314
+      <window_info anchor="bottom" id="Message" order="0" />
315
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
316
+      <window_info anchor="bottom" id="Find" order="1" />
317
+    </layout>
318
+  </component>
319
+  <component name="TypeScriptGeneratedFilesManager">
320
+    <option name="version" value="1" />
321
+  </component>
322
+  <component name="VcsContentAnnotationSettings">
323
+    <option name="myLimit" value="2678400000" />
324
+  </component>
325
+  <component name="editorHistoryManager">
326
+    <entry file="file://$PROJECT_DIR$/src/main/java/Group.java">
327
+      <provider selected="true" editor-type-id="text-editor">
328
+        <state relative-caret-position="30">
329
+          <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
330
+        </state>
331
+      </provider>
332
+    </entry>
333
+    <entry file="file://$PROJECT_DIR$/src/test/java/PersonTest.java">
334
+      <provider selected="true" editor-type-id="text-editor">
335
+        <state relative-caret-position="30">
336
+          <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
337
+        </state>
338
+      </provider>
339
+    </entry>
340
+    <entry file="file://$PROJECT_DIR$/src/main/java/Person.java">
341
+      <provider selected="true" editor-type-id="text-editor">
342
+        <state relative-caret-position="30">
343
+          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
344
+        </state>
345
+      </provider>
346
+    </entry>
347
+    <entry file="file://$PROJECT_DIR$/src/test/java/GroupTest.java">
348
+      <provider selected="true" editor-type-id="text-editor">
349
+        <state relative-caret-position="30">
350
+          <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
351
+        </state>
352
+      </provider>
353
+    </entry>
354
+    <entry file="file://$PROJECT_DIR$/src/main/java/Group.java">
355
+      <provider selected="true" editor-type-id="text-editor">
356
+        <state relative-caret-position="120">
357
+          <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
358
+        </state>
359
+      </provider>
360
+    </entry>
361
+    <entry file="file://$PROJECT_DIR$/src/main/java/Group.java">
362
+      <provider selected="true" editor-type-id="text-editor">
363
+        <state relative-caret-position="30">
364
+          <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
365
+        </state>
366
+      </provider>
367
+    </entry>
368
+    <entry file="file://$PROJECT_DIR$/src/test/java/PersonTest.java">
369
+      <provider selected="true" editor-type-id="text-editor">
370
+        <state relative-caret-position="30">
371
+          <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
372
+        </state>
373
+      </provider>
374
+    </entry>
375
+    <entry file="file://$PROJECT_DIR$/src/main/java/MainApplication.java">
376
+      <provider selected="true" editor-type-id="text-editor">
377
+        <state relative-caret-position="-142">
378
+          <caret line="3" column="13" selection-start-line="3" selection-start-column="13" selection-end-line="3" selection-end-column="13" />
379
+        </state>
380
+      </provider>
381
+    </entry>
382
+    <entry file="file://$PROJECT_DIR$/src/main/java/Person.java">
383
+      <provider selected="true" editor-type-id="text-editor">
384
+        <state relative-caret-position="-85">
385
+          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
386
+        </state>
387
+      </provider>
388
+    </entry>
389
+    <entry file="file://$PROJECT_DIR$/src/main/java/CheckPerson.java">
390
+      <provider selected="true" editor-type-id="text-editor">
391
+        <state>
392
+          <caret column="17" selection-start-column="17" selection-end-column="17" />
393
+        </state>
394
+      </provider>
395
+    </entry>
396
+    <entry file="file://$PROJECT_DIR$/src/test/java/GroupTest.java">
397
+      <provider selected="true" editor-type-id="text-editor">
398
+        <state relative-caret-position="-156">
399
+          <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
400
+        </state>
401
+      </provider>
402
+    </entry>
403
+    <entry file="file://$PROJECT_DIR$/src/main/java/Group.java">
404
+      <provider selected="true" editor-type-id="text-editor">
405
+        <state relative-caret-position="450">
406
+          <caret line="36" selection-start-line="36" selection-end-line="36" />
407
+        </state>
408
+      </provider>
409
+    </entry>
410
+  </component>
411
+  <component name="masterDetails">
412
+    <states>
413
+      <state key="ProjectJDKs.UI">
414
+        <settings>
415
+          <last-edited>1.8</last-edited>
416
+          <splitter-proportions>
417
+            <option name="proportions">
418
+              <list>
419
+                <option value="0.2" />
420
+              </list>
421
+            </option>
422
+          </splitter-proportions>
423
+        </settings>
424
+      </state>
425
+    </states>
426
+  </component>
427
+</project>

+ 1
- 1
question1.iml Целия файл

@@ -4,8 +4,8 @@
4 4
     <output url="file://$MODULE_DIR$/target/classes" />
5 5
     <output-test url="file://$MODULE_DIR$/target/test-classes" />
6 6
     <content url="file://$MODULE_DIR$">
7
-      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
8 7
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
9 9
       <excludeFolder url="file://$MODULE_DIR$/target" />
10 10
     </content>
11 11
     <orderEntry type="inheritedJdk" />

+ 6
- 10
src/main/java/Group.java Целия файл

@@ -34,27 +34,23 @@ public class Group {
34 34
     }
35 35
 
36 36
     public static void printPersonsWithinAgeRange(List<Person> roster, int low, int high) {
37
-        for (Person p : roster) {
38
-            if (low <= p.getAge() && p.getAge() < high) {
39
-                p.printPerson();
40
-            }
41
-        }
37
+
38
+        roster.forEach(p -> {if (low <= p.getAge() && p.getAge() < high) p.printPerson();});
42 39
     }
43 40
 
44 41
     public static void printPersons(List<Person> roster, CheckPerson tester) {
45
-        for (Person p : roster) {
46
-            if (tester.test(p)) {
47
-                p.printPerson();
48
-            }
49
-        }
42
+
43
+        roster.forEach(p->{if(tester.test(p)) p.printPerson();});
50 44
     }
51 45
 
52 46
     public static String printingPersons(List<Person> roster, CheckPerson tester) {
47
+
53 48
         for (Person p : roster) {
54 49
             if (tester.test(p)) {
55 50
                 return p.getName() +" "+p.getEmailAddress();
56 51
             }
57 52
         }
53
+        //roster.forEach(p ->{if(tester.test(p)) p.getName():" ";});
58 54
         return null;
59 55
     }
60 56
 }

BIN
target/classes/Group.class Целия файл


BIN
target/classes/MainApplication.class Целия файл