#38 Josh Chung

Atvērta
jdot2791 vēlas sapludināt 1 revīzijas no jdot2791/ZCW-SumOfInput-BlueJ:master uz master
6 mainītis faili ar 334 papildinājumiem un 0 dzēšanām
  1. 9
    0
      .idea/ZCW-SumOfInput-BlueJ.iml
  2. 11
    0
      .idea/misc.xml
  3. 8
    0
      .idea/modules.xml
  4. 6
    0
      .idea/vcs.xml
  5. 283
    0
      .idea/workspace.xml
  6. 17
    0
      Main.java

+ 9
- 0
.idea/ZCW-SumOfInput-BlueJ.iml Parādīt failu

@@ -0,0 +1,9 @@
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>

+ 11
- 0
.idea/misc.xml Parādīt failu

@@ -0,0 +1,11 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+  <component name="Kotlin2JsCompilerArguments">
7
+    <option name="sourceMapEmbedSources" />
8
+    <option name="sourceMapPrefix" />
9
+  </component>
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
11
+</project>

+ 8
- 0
.idea/modules.xml Parādīt failu

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

+ 6
- 0
.idea/vcs.xml Parādīt failu

@@ -0,0 +1,6 @@
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>

+ 283
- 0
.idea/workspace.xml Parādīt failu

@@ -0,0 +1,283 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="269d6c04-64f6-4c74-8c52-e5322afc0694" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/Main.java" afterDir="false" />
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="Main.java" pinned="false" current-in-tab="true">
17
+        <entry file="file://$PROJECT_DIR$/Main.java">
18
+          <provider selected="true" editor-type-id="text-editor">
19
+            <state relative-caret-position="180">
20
+              <caret line="12" column="8" selection-start-line="12" selection-start-column="8" selection-end-line="12" selection-end-column="8" />
21
+            </state>
22
+          </provider>
23
+        </entry>
24
+      </file>
25
+    </leaf>
26
+  </component>
27
+  <component name="Git.Settings">
28
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
29
+  </component>
30
+  <component name="IdeDocumentHistory">
31
+    <option name="CHANGED_PATHS">
32
+      <list>
33
+        <option value="$PROJECT_DIR$/Main.java" />
34
+      </list>
35
+    </option>
36
+  </component>
37
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
38
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
39
+  <component name="JsGulpfileManager">
40
+    <detection-done>true</detection-done>
41
+    <sorting>DEFINITION_ORDER</sorting>
42
+  </component>
43
+  <component name="NodePackageJsonFileManager">
44
+    <packageJsonPaths />
45
+  </component>
46
+  <component name="ProjectFrameBounds" fullScreen="true">
47
+    <option name="x" value="-306" />
48
+    <option name="y" value="-1080" />
49
+    <option name="width" value="1920" />
50
+    <option name="height" value="1080" />
51
+  </component>
52
+  <component name="ProjectLevelVcsManager">
53
+    <ConfirmationsSetting value="1" id="Add" />
54
+  </component>
55
+  <component name="ProjectView">
56
+    <navigator proportions="" version="1">
57
+      <foldersAlwaysOnTop value="true" />
58
+    </navigator>
59
+    <panes>
60
+      <pane id="ProjectPane">
61
+        <subPane>
62
+          <expand>
63
+            <path>
64
+              <item name="ZCW-SumOfInput-BlueJ" type="b2602c69:ProjectViewProjectNode" />
65
+              <item name="ZCW-SumOfInput-BlueJ" type="462c0819:PsiDirectoryNode" />
66
+            </path>
67
+          </expand>
68
+          <select />
69
+        </subPane>
70
+      </pane>
71
+      <pane id="Scope" />
72
+      <pane id="AndroidView" />
73
+      <pane id="PackagesPane" />
74
+    </panes>
75
+  </component>
76
+  <component name="PropertiesComponent">
77
+    <property name="WebServerToolWindowFactoryState" value="false" />
78
+    <property name="aspect.path.notification.shown" value="true" />
79
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
80
+    <property name="node.js.path.for.package.eslint" value="project" />
81
+    <property name="node.js.path.for.package.standard" value="project" />
82
+    <property name="node.js.selected.package.eslint" value="" />
83
+    <property name="node.js.selected.package.standard" value="" />
84
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
85
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
86
+    <property name="project.structure.last.edited" value="Global Libraries" />
87
+    <property name="project.structure.proportion" value="0.0" />
88
+    <property name="project.structure.side.proportion" value="0.2" />
89
+    <property name="settings.editor.selected.configurable" value="project.validation" />
90
+  </component>
91
+  <component name="RunDashboard">
92
+    <option name="ruleStates">
93
+      <list>
94
+        <RuleState>
95
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
96
+        </RuleState>
97
+        <RuleState>
98
+          <option name="name" value="StatusDashboardGroupingRule" />
99
+        </RuleState>
100
+      </list>
101
+    </option>
102
+  </component>
103
+  <component name="RunManager">
104
+    <configuration default="true" type="Application" factoryName="Application">
105
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
106
+    </configuration>
107
+    <configuration default="true" type="JUnit" factoryName="JUnit">
108
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
109
+      <option name="ALTERNATIVE_JRE_PATH" />
110
+      <option name="PACKAGE_NAME" />
111
+      <option name="MAIN_CLASS_NAME" />
112
+      <option name="METHOD_NAME" />
113
+      <option name="TEST_OBJECT" value="class" />
114
+      <option name="VM_PARAMETERS" value="-ea" />
115
+      <option name="PARAMETERS" />
116
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
117
+      <option name="PASS_PARENT_ENVS" value="true" />
118
+      <option name="TEST_SEARCH_SCOPE">
119
+        <value defaultName="singleModule" />
120
+      </option>
121
+      <patterns />
122
+    </configuration>
123
+    <configuration default="true" type="TestNG" factoryName="TestNG">
124
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
125
+      <option name="ALTERNATIVE_JRE_PATH" />
126
+      <option name="SUITE_NAME" />
127
+      <option name="PACKAGE_NAME" />
128
+      <option name="MAIN_CLASS_NAME" />
129
+      <option name="METHOD_NAME" />
130
+      <option name="GROUP_NAME" />
131
+      <option name="TEST_OBJECT" value="CLASS" />
132
+      <option name="VM_PARAMETERS" value="-ea" />
133
+      <option name="PARAMETERS" />
134
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
135
+      <option name="OUTPUT_DIRECTORY" />
136
+      <option name="PASS_PARENT_ENVS" value="true" />
137
+      <option name="TEST_SEARCH_SCOPE">
138
+        <value defaultName="singleModule" />
139
+      </option>
140
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
141
+      <option name="PROPERTIES_FILE" />
142
+      <properties />
143
+      <listeners />
144
+    </configuration>
145
+  </component>
146
+  <component name="SvnConfiguration">
147
+    <configuration />
148
+  </component>
149
+  <component name="TaskManager">
150
+    <task active="true" id="Default" summary="Default task">
151
+      <changelist id="269d6c04-64f6-4c74-8c52-e5322afc0694" name="Default" comment="" />
152
+      <created>1530229256590</created>
153
+      <option name="number" value="Default" />
154
+      <option name="presentableId" value="Default" />
155
+      <updated>1530229256590</updated>
156
+      <workItem from="1530229257983" duration="867000" />
157
+    </task>
158
+    <servers />
159
+  </component>
160
+  <component name="TimeTrackingManager">
161
+    <option name="totallyTimeSpent" value="867000" />
162
+  </component>
163
+  <component name="ToolWindowManager">
164
+    <frame x="-306" y="-1080" width="1920" height="1080" extended-state="0" />
165
+    <editor active="true" />
166
+    <layout>
167
+      <window_info anchor="right" id="Palette" />
168
+      <window_info anchor="bottom" id="TODO" order="6" />
169
+      <window_info anchor="right" id="Palette&#9;" />
170
+      <window_info id="Image Layers" />
171
+      <window_info anchor="right" id="Capture Analysis" />
172
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
173
+      <window_info anchor="right" id="Maven Projects" />
174
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
175
+      <window_info anchor="bottom" id="Run" order="2" />
176
+      <window_info anchor="bottom" id="Version Control" />
177
+      <window_info anchor="bottom" id="Terminal" />
178
+      <window_info id="Capture Tool" />
179
+      <window_info id="Designer" />
180
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24973376" />
181
+      <window_info anchor="right" id="Database" />
182
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
183
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
184
+      <window_info id="UI Designer" />
185
+      <window_info anchor="right" id="Theme Preview" />
186
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
187
+      <window_info id="Favorites" side_tool="true" />
188
+      <window_info anchor="bottom" id="Find" order="1" />
189
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
190
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
191
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
192
+      <window_info anchor="bottom" id="Message" order="0" />
193
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
194
+    </layout>
195
+  </component>
196
+  <component name="TypeScriptGeneratedFilesManager">
197
+    <option name="version" value="1" />
198
+  </component>
199
+  <component name="VcsContentAnnotationSettings">
200
+    <option name="myLimit" value="2678400000" />
201
+  </component>
202
+  <component name="editorHistoryManager">
203
+    <entry file="file://$PROJECT_DIR$/Main.java">
204
+      <provider selected="true" editor-type-id="text-editor">
205
+        <state relative-caret-position="180">
206
+          <caret line="12" column="8" selection-start-line="12" selection-start-column="8" selection-end-line="12" selection-end-column="8" />
207
+        </state>
208
+      </provider>
209
+    </entry>
210
+  </component>
211
+  <component name="masterDetails">
212
+    <states>
213
+      <state key="ArquillianSettingsConfigurable.UI">
214
+        <settings>
215
+          <splitter-proportions>
216
+            <option name="proportions">
217
+              <list>
218
+                <option value="0.2" />
219
+              </list>
220
+            </option>
221
+          </splitter-proportions>
222
+        </settings>
223
+      </state>
224
+      <state key="GlobalLibrariesConfigurable.UI">
225
+        <settings>
226
+          <splitter-proportions>
227
+            <option name="proportions">
228
+              <list>
229
+                <option value="0.2" />
230
+              </list>
231
+            </option>
232
+          </splitter-proportions>
233
+        </settings>
234
+      </state>
235
+      <state key="JdkListConfigurable.UI">
236
+        <settings>
237
+          <last-edited>1.8</last-edited>
238
+          <splitter-proportions>
239
+            <option name="proportions">
240
+              <list>
241
+                <option value="0.2" />
242
+              </list>
243
+            </option>
244
+          </splitter-proportions>
245
+        </settings>
246
+      </state>
247
+      <state key="ProjectJDKs.UI">
248
+        <settings>
249
+          <last-edited>1.8</last-edited>
250
+          <splitter-proportions>
251
+            <option name="proportions">
252
+              <list>
253
+                <option value="0.2" />
254
+              </list>
255
+            </option>
256
+          </splitter-proportions>
257
+        </settings>
258
+      </state>
259
+      <state key="ProjectLibrariesConfigurable.UI">
260
+        <settings>
261
+          <splitter-proportions>
262
+            <option name="proportions">
263
+              <list>
264
+                <option value="0.2" />
265
+              </list>
266
+            </option>
267
+          </splitter-proportions>
268
+        </settings>
269
+      </state>
270
+      <state key="ScopeChooserConfigurable.UI">
271
+        <settings>
272
+          <splitter-proportions>
273
+            <option name="proportions">
274
+              <list>
275
+                <option value="0.2" />
276
+              </list>
277
+            </option>
278
+          </splitter-proportions>
279
+        </settings>
280
+      </state>
281
+    </states>
282
+  </component>
283
+</project>

+ 17
- 0
Main.java Parādīt failu

@@ -5,5 +5,22 @@ public class Main {
5 5
 
6 6
     public static void main(String[] args){
7 7
 
8
+        Scanner reader = new Scanner(System.in);
9
+
10
+        public int getNumber() {
11
+            System.out.println("Input number: ");
12
+            int n = reader.nextInt();
13
+            return n;
14
+        }
15
+
16
+        public int sumOfNumbers(int n) {
17
+            int x = 0;
18
+            for(int i = 0; i <= n; i++) {
19
+                x+=i;
20
+            }
21
+            return x;
22
+        }
23
+
24
+        System.out.println("Your new number is: " + sumOfNumbers(getNumber));
8 25
     }
9 26
 }