Ahmad Rusdi 6 年之前
當前提交
03c3e4727d

+ 13
- 0
.idea/compiler.xml 查看文件

@@ -0,0 +1,13 @@
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="riproderilmington" />
10
+      </profile>
11
+    </annotationProcessing>
12
+  </component>
13
+</project>

+ 6
- 0
.idea/encodings.xml 查看文件

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Encoding">
4
+    <file url="file://$PROJECT_DIR$" charset="UTF-8" />
5
+  </component>
6
+</project>

+ 14
- 0
.idea/misc.xml 查看文件

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

+ 124
- 0
.idea/uiDesigner.xml 查看文件

@@ -0,0 +1,124 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Palette2">
4
+    <group name="Swing">
5
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
+      </item>
8
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
+      </item>
11
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
+      </item>
14
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
+      </item>
17
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
+        <initial-values>
20
+          <property name="text" value="Button" />
21
+        </initial-values>
22
+      </item>
23
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
+        <initial-values>
26
+          <property name="text" value="RadioButton" />
27
+        </initial-values>
28
+      </item>
29
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
+        <initial-values>
32
+          <property name="text" value="CheckBox" />
33
+        </initial-values>
34
+      </item>
35
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
+        <initial-values>
38
+          <property name="text" value="Label" />
39
+        </initial-values>
40
+      </item>
41
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
+          <preferred-size width="150" height="-1" />
44
+        </default-constraints>
45
+      </item>
46
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
+          <preferred-size width="150" height="-1" />
49
+        </default-constraints>
50
+      </item>
51
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
+          <preferred-size width="150" height="-1" />
54
+        </default-constraints>
55
+      </item>
56
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
+          <preferred-size width="150" height="50" />
59
+        </default-constraints>
60
+      </item>
61
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
+          <preferred-size width="150" height="50" />
64
+        </default-constraints>
65
+      </item>
66
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
+          <preferred-size width="150" height="50" />
69
+        </default-constraints>
70
+      </item>
71
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
+      </item>
74
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
+          <preferred-size width="150" height="50" />
77
+        </default-constraints>
78
+      </item>
79
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
+          <preferred-size width="150" height="50" />
82
+        </default-constraints>
83
+      </item>
84
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
+          <preferred-size width="150" height="50" />
87
+        </default-constraints>
88
+      </item>
89
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
+          <preferred-size width="200" height="200" />
92
+        </default-constraints>
93
+      </item>
94
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
+          <preferred-size width="200" height="200" />
97
+        </default-constraints>
98
+      </item>
99
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
+      </item>
102
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
+      </item>
105
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
+      </item>
108
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
+      </item>
111
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
+          <preferred-size width="-1" height="20" />
114
+        </default-constraints>
115
+      </item>
116
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
+      </item>
119
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
+      </item>
122
+    </group>
123
+  </component>
124
+</project>

+ 587
- 0
.idea/workspace.xml 查看文件

@@ -0,0 +1,587 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="d9dc3859-542d-41b0-bf69-76d25d2a13ed" name="Default" comment="" />
5
+    <ignored path="$PROJECT_DIR$/out/" />
6
+    <ignored path="$PROJECT_DIR$/target/" />
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
+    <splitter split-orientation="horizontal" split-proportion="0.5">
16
+      <split-first>
17
+        <leaf>
18
+          <file leaf-file-name="ShortCalculator.java" pinned="false" current-in-tab="true">
19
+            <entry file="file://$PROJECT_DIR$/src/main/java/basikz/ShortCalculator.java">
20
+              <provider selected="true" editor-type-id="text-editor">
21
+                <state relative-caret-position="128">
22
+                  <caret line="8" column="30" lean-forward="true" selection-start-line="8" selection-start-column="30" selection-end-line="8" selection-end-column="30" />
23
+                  <folding>
24
+                    <element signature="e#93#94#0" expanded="true" />
25
+                    <element signature="e#126#127#0" expanded="true" />
26
+                    <element signature="e#189#190#0" expanded="true" />
27
+                    <element signature="e#233#234#0" expanded="true" />
28
+                    <element signature="e#281#282#0" expanded="true" />
29
+                    <element signature="e#325#326#0" expanded="true" />
30
+                    <element signature="e#377#378#0" expanded="true" />
31
+                    <element signature="e#421#422#0" expanded="true" />
32
+                    <element signature="e#482#483#0" expanded="true" />
33
+                    <element signature="e#526#527#0" expanded="true" />
34
+                  </folding>
35
+                </state>
36
+              </provider>
37
+            </entry>
38
+          </file>
39
+        </leaf>
40
+      </split-first>
41
+      <split-second>
42
+        <leaf>
43
+          <file leaf-file-name="ShortCalculatorTest.java" pinned="false" current-in-tab="true">
44
+            <entry file="file://$PROJECT_DIR$/src/test/java/basikz/ShortCalculatorTest.java">
45
+              <provider selected="true" editor-type-id="text-editor">
46
+                <state relative-caret-position="480">
47
+                  <caret line="42" column="25" selection-start-line="42" selection-start-column="25" selection-end-line="42" selection-end-column="25" />
48
+                  <folding>
49
+                    <element signature="imports" expanded="true" />
50
+                  </folding>
51
+                </state>
52
+              </provider>
53
+            </entry>
54
+          </file>
55
+        </leaf>
56
+      </split-second>
57
+    </splitter>
58
+  </component>
59
+  <component name="IdeDocumentHistory">
60
+    <option name="CHANGED_PATHS">
61
+      <list>
62
+        <option value="$PROJECT_DIR$/src/main/java/basik-komputashins/Factorial.java" />
63
+        <option value="$PROJECT_DIR$/src/test/java/basikz/FactorialTest.java" />
64
+        <option value="$PROJECT_DIR$/src/test/java/basikz/IntegerPrinterTest.java" />
65
+        <option value="$PROJECT_DIR$/src/test/java/basikz/NormalizeAngleTest.java" />
66
+        <option value="$PROJECT_DIR$/src/test/java/basikz/LargestIntegerTest.java" />
67
+        <option value="$PROJECT_DIR$/src/main/java/basikz/Factorial.java" />
68
+        <option value="$PROJECT_DIR$/src/main/java/basikz/IntegerPrinter.java" />
69
+        <option value="$PROJECT_DIR$/src/main/java/basikz/LargestInteger.java" />
70
+        <option value="$PROJECT_DIR$/src/main/java/basikz/NormalizeAngle.java" />
71
+        <option value="$PROJECT_DIR$/src/main/java/basikz/ShortCalculator.java" />
72
+        <option value="$PROJECT_DIR$/src/test/java/basikz/ShortCalculatorTest.java" />
73
+      </list>
74
+    </option>
75
+  </component>
76
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
77
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
78
+  <component name="JsGulpfileManager">
79
+    <detection-done>true</detection-done>
80
+    <sorting>DEFINITION_ORDER</sorting>
81
+  </component>
82
+  <component name="MavenImportPreferences">
83
+    <option name="importingSettings">
84
+      <MavenImportingSettings>
85
+        <option name="importAutomatically" value="true" />
86
+      </MavenImportingSettings>
87
+    </option>
88
+  </component>
89
+  <component name="NodePackageJsonFileManager">
90
+    <packageJsonPaths />
91
+  </component>
92
+  <component name="ProjectFrameBounds" extendedState="6">
93
+    <option name="x" value="4" />
94
+    <option name="y" value="4" />
95
+    <option name="width" value="636" />
96
+    <option name="height" value="792" />
97
+  </component>
98
+  <component name="ProjectView">
99
+    <navigator proportions="" version="1">
100
+      <foldersAlwaysOnTop value="true" />
101
+    </navigator>
102
+    <panes>
103
+      <pane id="PackagesPane" />
104
+      <pane id="Scope" />
105
+      <pane id="AndroidView" />
106
+      <pane id="ProjectPane">
107
+        <subPane>
108
+          <expand>
109
+            <path>
110
+              <item name="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
111
+              <item name="riproderilmington" type="462c0819:PsiDirectoryNode" />
112
+            </path>
113
+            <path>
114
+              <item name="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
115
+              <item name="riproderilmington" type="462c0819:PsiDirectoryNode" />
116
+              <item name="src" type="462c0819:PsiDirectoryNode" />
117
+            </path>
118
+            <path>
119
+              <item name="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
120
+              <item name="riproderilmington" type="462c0819:PsiDirectoryNode" />
121
+              <item name="src" type="462c0819:PsiDirectoryNode" />
122
+              <item name="main" type="462c0819:PsiDirectoryNode" />
123
+            </path>
124
+            <path>
125
+              <item name="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
126
+              <item name="riproderilmington" 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="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
133
+              <item name="riproderilmington" type="462c0819:PsiDirectoryNode" />
134
+              <item name="src" type="462c0819:PsiDirectoryNode" />
135
+              <item name="main" type="462c0819:PsiDirectoryNode" />
136
+              <item name="java" type="462c0819:PsiDirectoryNode" />
137
+              <item name="basikz" type="462c0819:PsiDirectoryNode" />
138
+            </path>
139
+            <path>
140
+              <item name="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
141
+              <item name="riproderilmington" type="462c0819:PsiDirectoryNode" />
142
+              <item name="src" type="462c0819:PsiDirectoryNode" />
143
+              <item name="test" type="462c0819:PsiDirectoryNode" />
144
+            </path>
145
+            <path>
146
+              <item name="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
147
+              <item name="riproderilmington" type="462c0819:PsiDirectoryNode" />
148
+              <item name="src" type="462c0819:PsiDirectoryNode" />
149
+              <item name="test" type="462c0819:PsiDirectoryNode" />
150
+              <item name="java" type="462c0819:PsiDirectoryNode" />
151
+            </path>
152
+            <path>
153
+              <item name="riproderilmington" type="b2602c69:ProjectViewProjectNode" />
154
+              <item name="riproderilmington" type="462c0819:PsiDirectoryNode" />
155
+              <item name="src" type="462c0819:PsiDirectoryNode" />
156
+              <item name="test" type="462c0819:PsiDirectoryNode" />
157
+              <item name="java" type="462c0819:PsiDirectoryNode" />
158
+              <item name="basikz" type="462c0819:PsiDirectoryNode" />
159
+            </path>
160
+          </expand>
161
+          <select />
162
+        </subPane>
163
+      </pane>
164
+    </panes>
165
+  </component>
166
+  <component name="PropertiesComponent">
167
+    <property name="WebServerToolWindowFactoryState" value="false" />
168
+    <property name="aspect.path.notification.shown" value="true" />
169
+    <property name="last_directory_selection" value="$PROJECT_DIR$/src/main/java" />
170
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
171
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
172
+  </component>
173
+  <component name="RecentsManager">
174
+    <key name="CreateClassDialog.RecentsKey">
175
+      <recent name="basikz" />
176
+    </key>
177
+    <key name="MoveFile.RECENT_KEYS">
178
+      <recent name="$PROJECT_DIR$/src/test/java/basik-komputashins" />
179
+    </key>
180
+  </component>
181
+  <component name="RunDashboard">
182
+    <option name="ruleStates">
183
+      <list>
184
+        <RuleState>
185
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
186
+        </RuleState>
187
+        <RuleState>
188
+          <option name="name" value="StatusDashboardGroupingRule" />
189
+        </RuleState>
190
+      </list>
191
+    </option>
192
+  </component>
193
+  <component name="RunManager" selected="JUnit.ShortCalculatorTest.modTest">
194
+    <configuration default="true" type="Application" factoryName="Application">
195
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
196
+    </configuration>
197
+    <configuration name="IntegerPrinterTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
198
+      <module name="riproderilmington" />
199
+      <extension name="coverage">
200
+        <pattern>
201
+          <option name="PATTERN" value="basikz.*" />
202
+          <option name="ENABLED" value="true" />
203
+        </pattern>
204
+      </extension>
205
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
206
+      <option name="ALTERNATIVE_JRE_PATH" />
207
+      <option name="PACKAGE_NAME" value="basikz" />
208
+      <option name="MAIN_CLASS_NAME" value="basikz.IntegerPrinterTest" />
209
+      <option name="METHOD_NAME" />
210
+      <option name="TEST_OBJECT" value="class" />
211
+      <option name="VM_PARAMETERS" value="-ea" />
212
+      <option name="PARAMETERS" />
213
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
214
+      <option name="PASS_PARENT_ENVS" value="true" />
215
+      <option name="TEST_SEARCH_SCOPE">
216
+        <value defaultName="singleModule" />
217
+      </option>
218
+      <patterns />
219
+    </configuration>
220
+    <configuration name="LargestIntegerTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
221
+      <module name="riproderilmington" />
222
+      <extension name="coverage">
223
+        <pattern>
224
+          <option name="PATTERN" value="basikz.*" />
225
+          <option name="ENABLED" value="true" />
226
+        </pattern>
227
+      </extension>
228
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
229
+      <option name="ALTERNATIVE_JRE_PATH" />
230
+      <option name="PACKAGE_NAME" value="basikz" />
231
+      <option name="MAIN_CLASS_NAME" value="basikz.LargestIntegerTest" />
232
+      <option name="METHOD_NAME" />
233
+      <option name="TEST_OBJECT" value="class" />
234
+      <option name="VM_PARAMETERS" value="-ea" />
235
+      <option name="PARAMETERS" />
236
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
237
+      <option name="PASS_PARENT_ENVS" value="true" />
238
+      <option name="TEST_SEARCH_SCOPE">
239
+        <value defaultName="singleModule" />
240
+      </option>
241
+      <patterns />
242
+    </configuration>
243
+    <configuration name="NormalizeAngleTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
244
+      <module name="riproderilmington" />
245
+      <extension name="coverage">
246
+        <pattern>
247
+          <option name="PATTERN" value="basikz.*" />
248
+          <option name="ENABLED" value="true" />
249
+        </pattern>
250
+      </extension>
251
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
252
+      <option name="ALTERNATIVE_JRE_PATH" />
253
+      <option name="PACKAGE_NAME" value="basikz" />
254
+      <option name="MAIN_CLASS_NAME" value="basikz.NormalizeAngleTest" />
255
+      <option name="METHOD_NAME" />
256
+      <option name="TEST_OBJECT" value="class" />
257
+      <option name="VM_PARAMETERS" value="-ea" />
258
+      <option name="PARAMETERS" />
259
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
260
+      <option name="PASS_PARENT_ENVS" value="true" />
261
+      <option name="TEST_SEARCH_SCOPE">
262
+        <value defaultName="singleModule" />
263
+      </option>
264
+      <patterns />
265
+    </configuration>
266
+    <configuration name="ShortCalculatorTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
267
+      <module name="riproderilmington" />
268
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
269
+      <option name="ALTERNATIVE_JRE_PATH" />
270
+      <option name="PACKAGE_NAME" value="basikz" />
271
+      <option name="MAIN_CLASS_NAME" value="ShortCalculatorTest" />
272
+      <option name="METHOD_NAME" />
273
+      <option name="TEST_OBJECT" value="class" />
274
+      <option name="VM_PARAMETERS" value="-ea" />
275
+      <option name="PARAMETERS" />
276
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
277
+      <option name="PASS_PARENT_ENVS" value="true" />
278
+      <option name="TEST_SEARCH_SCOPE">
279
+        <value defaultName="singleModule" />
280
+      </option>
281
+      <patterns />
282
+    </configuration>
283
+    <configuration name="ShortCalculatorTest.modTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
284
+      <module name="riproderilmington" />
285
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
286
+      <option name="ALTERNATIVE_JRE_PATH" />
287
+      <option name="PACKAGE_NAME" value="basikz" />
288
+      <option name="MAIN_CLASS_NAME" value="ShortCalculatorTest" />
289
+      <option name="METHOD_NAME" value="modTest" />
290
+      <option name="TEST_OBJECT" value="method" />
291
+      <option name="VM_PARAMETERS" value="-ea" />
292
+      <option name="PARAMETERS" />
293
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
294
+      <option name="PASS_PARENT_ENVS" value="true" />
295
+      <option name="TEST_SEARCH_SCOPE">
296
+        <value defaultName="singleModule" />
297
+      </option>
298
+      <patterns />
299
+    </configuration>
300
+    <configuration default="true" type="JUnit" factoryName="JUnit">
301
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
302
+      <option name="ALTERNATIVE_JRE_PATH" />
303
+      <option name="PACKAGE_NAME" />
304
+      <option name="MAIN_CLASS_NAME" />
305
+      <option name="METHOD_NAME" />
306
+      <option name="TEST_OBJECT" value="class" />
307
+      <option name="VM_PARAMETERS" value="-ea" />
308
+      <option name="PARAMETERS" />
309
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
310
+      <option name="PASS_PARENT_ENVS" value="true" />
311
+      <option name="TEST_SEARCH_SCOPE">
312
+        <value defaultName="singleModule" />
313
+      </option>
314
+      <patterns />
315
+    </configuration>
316
+    <configuration default="true" type="TestNG" factoryName="TestNG">
317
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
318
+      <option name="ALTERNATIVE_JRE_PATH" />
319
+      <option name="SUITE_NAME" />
320
+      <option name="PACKAGE_NAME" />
321
+      <option name="MAIN_CLASS_NAME" />
322
+      <option name="METHOD_NAME" />
323
+      <option name="GROUP_NAME" />
324
+      <option name="TEST_OBJECT" value="CLASS" />
325
+      <option name="VM_PARAMETERS" value="-ea" />
326
+      <option name="PARAMETERS" />
327
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
328
+      <option name="OUTPUT_DIRECTORY" />
329
+      <option name="PASS_PARENT_ENVS" value="true" />
330
+      <option name="TEST_SEARCH_SCOPE">
331
+        <value defaultName="singleModule" />
332
+      </option>
333
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
334
+      <option name="PROPERTIES_FILE" />
335
+      <properties />
336
+      <listeners />
337
+    </configuration>
338
+    <list>
339
+      <item itemvalue="JUnit.IntegerPrinterTest" />
340
+      <item itemvalue="JUnit.LargestIntegerTest" />
341
+      <item itemvalue="JUnit.NormalizeAngleTest" />
342
+      <item itemvalue="JUnit.ShortCalculatorTest" />
343
+      <item itemvalue="JUnit.ShortCalculatorTest.modTest" />
344
+    </list>
345
+    <recent_temporary>
346
+      <list>
347
+        <item itemvalue="JUnit.ShortCalculatorTest.modTest" />
348
+        <item itemvalue="JUnit.ShortCalculatorTest" />
349
+        <item itemvalue="JUnit.NormalizeAngleTest" />
350
+        <item itemvalue="JUnit.LargestIntegerTest" />
351
+        <item itemvalue="JUnit.IntegerPrinterTest" />
352
+      </list>
353
+    </recent_temporary>
354
+  </component>
355
+  <component name="SvnConfiguration">
356
+    <configuration />
357
+  </component>
358
+  <component name="TaskManager">
359
+    <task active="true" id="Default" summary="Default task">
360
+      <changelist id="d9dc3859-542d-41b0-bf69-76d25d2a13ed" name="Default" comment="" />
361
+      <created>1529521628253</created>
362
+      <option name="number" value="Default" />
363
+      <option name="presentableId" value="Default" />
364
+      <updated>1529521628253</updated>
365
+      <workItem from="1529521629672" duration="1488000" />
366
+    </task>
367
+    <servers />
368
+  </component>
369
+  <component name="TestHistory">
370
+    <history-entry file="FactorialTest - 2018.06.20 at 15h 19m 00s.xml">
371
+      <configuration name="FactorialTest" configurationId="JUnit" />
372
+    </history-entry>
373
+    <history-entry file="FactorialTest - 2018.06.20 at 15h 19m 50s.xml">
374
+      <configuration name="FactorialTest" configurationId="JUnit" />
375
+    </history-entry>
376
+    <history-entry file="FactorialTest - 2018.06.20 at 15h 20m 10s.xml">
377
+      <configuration name="FactorialTest" configurationId="JUnit" />
378
+    </history-entry>
379
+    <history-entry file="FactorialTest - 2018.06.20 at 15h 21m 38s.xml">
380
+      <configuration name="FactorialTest" configurationId="JUnit" />
381
+    </history-entry>
382
+    <history-entry file="IntegerPrinterTest - 2018.06.20 at 15h 22m 00s.xml">
383
+      <configuration name="IntegerPrinterTest" configurationId="JUnit" />
384
+    </history-entry>
385
+    <history-entry file="LargestIntegerTest - 2018.06.20 at 15h 23m 43s.xml">
386
+      <configuration name="LargestIntegerTest" configurationId="JUnit" />
387
+    </history-entry>
388
+    <history-entry file="NormalizeAngleTest - 2018.06.20 at 15h 24m 36s.xml">
389
+      <configuration name="NormalizeAngleTest" configurationId="JUnit" />
390
+    </history-entry>
391
+    <history-entry file="ShortCalculatorTest - 2018.06.20 at 15h 31m 24s.xml">
392
+      <configuration name="ShortCalculatorTest" configurationId="JUnit" />
393
+    </history-entry>
394
+    <history-entry file="ShortCalculatorTest - 2018.06.20 at 15h 32m 11s.xml">
395
+      <configuration name="ShortCalculatorTest" configurationId="JUnit" />
396
+    </history-entry>
397
+    <history-entry file="ShortCalculatorTest_modTest - 2018.06.20 at 15h 32m 26s.xml">
398
+      <configuration name="ShortCalculatorTest.modTest" configurationId="JUnit" />
399
+    </history-entry>
400
+  </component>
401
+  <component name="TimeTrackingManager">
402
+    <option name="totallyTimeSpent" value="1488000" />
403
+  </component>
404
+  <component name="ToolWindowManager">
405
+    <frame x="4" y="4" width="1272" height="792" extended-state="6" />
406
+    <editor active="true" />
407
+    <layout>
408
+      <window_info anchor="right" id="Key Promoter X" />
409
+      <window_info anchor="right" id="Palette" />
410
+      <window_info anchor="bottom" id="TODO" order="6" />
411
+      <window_info anchor="bottom" id="Messages" weight="0.3294964" />
412
+      <window_info anchor="right" id="Palette&#9;" />
413
+      <window_info id="Image Layers" />
414
+      <window_info anchor="right" id="Capture Analysis" />
415
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
416
+      <window_info anchor="right" id="Maven Projects" />
417
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
418
+      <window_info anchor="bottom" id="Run" order="2" weight="0.3294964" />
419
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
420
+      <window_info anchor="bottom" id="Terminal" weight="0.3294964" />
421
+      <window_info id="Capture Tool" />
422
+      <window_info id="Designer" />
423
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2495935" />
424
+      <window_info anchor="right" id="Database" />
425
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
426
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
427
+      <window_info id="UI Designer" />
428
+      <window_info anchor="right" id="Theme Preview" />
429
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
430
+      <window_info id="Favorites" side_tool="true" />
431
+      <window_info anchor="bottom" id="Find" order="1" />
432
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
433
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
434
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
435
+      <window_info anchor="bottom" id="Message" order="0" />
436
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
437
+    </layout>
438
+  </component>
439
+  <component name="TypeScriptGeneratedFilesManager">
440
+    <option name="version" value="1" />
441
+  </component>
442
+  <component name="VcsContentAnnotationSettings">
443
+    <option name="myLimit" value="2678400000" />
444
+  </component>
445
+  <component name="editorHistoryManager">
446
+    <entry file="file://$PROJECT_DIR$/src/main/java/basik/App.java">
447
+      <provider selected="true" editor-type-id="text-editor">
448
+        <state>
449
+          <caret column="15" selection-start-column="15" selection-end-column="15" />
450
+        </state>
451
+      </provider>
452
+    </entry>
453
+    <entry file="file://$PROJECT_DIR$/src/test/java/basikz/AppTest.java">
454
+      <provider selected="true" editor-type-id="text-editor">
455
+        <state relative-caret-position="112">
456
+          <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
457
+        </state>
458
+      </provider>
459
+    </entry>
460
+    <entry file="file://$PROJECT_DIR$/src/test/java/basikz/FactorialTest.java">
461
+      <provider selected="true" editor-type-id="text-editor">
462
+        <state relative-caret-position="55">
463
+          <caret line="10" column="13" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" />
464
+          <folding>
465
+            <element signature="imports" expanded="true" />
466
+          </folding>
467
+        </state>
468
+      </provider>
469
+    </entry>
470
+    <entry file="file://$PROJECT_DIR$/src/main/java/basikz/Factorial.java">
471
+      <provider selected="true" editor-type-id="text-editor">
472
+        <state relative-caret-position="32">
473
+          <caret line="2" selection-start-line="2" selection-end-line="2" />
474
+        </state>
475
+      </provider>
476
+    </entry>
477
+    <entry file="file://$PROJECT_DIR$/src/main/java/basikz/IntegerPrinter.java">
478
+      <provider selected="true" editor-type-id="text-editor">
479
+        <state relative-caret-position="80">
480
+          <caret line="5" column="39" selection-start-line="5" selection-start-column="39" selection-end-line="5" selection-end-column="39" />
481
+          <folding>
482
+            <element signature="e#97#98#0" expanded="true" />
483
+            <element signature="e#124#125#0" expanded="true" />
484
+            <element signature="e#200#201#0" expanded="true" />
485
+            <element signature="e#229#230#0" expanded="true" />
486
+            <element signature="e#259#260#0" expanded="true" />
487
+            <element signature="e#286#287#0" expanded="true" />
488
+          </folding>
489
+        </state>
490
+      </provider>
491
+    </entry>
492
+    <entry file="file://$PROJECT_DIR$/src/test/java/basikz/IntegerPrinterTest.java">
493
+      <provider selected="true" editor-type-id="text-editor">
494
+        <state relative-caret-position="63">
495
+          <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" />
496
+        </state>
497
+      </provider>
498
+    </entry>
499
+    <entry file="file://$PROJECT_DIR$/src/main/java/basikz/LargestInteger.java">
500
+      <provider selected="true" editor-type-id="text-editor">
501
+        <state relative-caret-position="128">
502
+          <caret line="8" column="18" selection-start-line="8" selection-start-column="18" selection-end-line="8" selection-end-column="18" />
503
+        </state>
504
+      </provider>
505
+    </entry>
506
+    <entry file="file://$PROJECT_DIR$/src/test/java/basikz/LargestIntegerTest.java">
507
+      <provider selected="true" editor-type-id="text-editor">
508
+        <state relative-caret-position="80">
509
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
510
+          <folding>
511
+            <element signature="imports" expanded="true" />
512
+          </folding>
513
+        </state>
514
+      </provider>
515
+    </entry>
516
+    <entry file="file://$PROJECT_DIR$/src/main/java/basikz/NormalizeAngle.java">
517
+      <provider selected="true" editor-type-id="text-editor">
518
+        <state relative-caret-position="144">
519
+          <caret line="9" column="19" selection-start-line="9" selection-start-column="19" selection-end-line="9" selection-end-column="19" />
520
+          <folding>
521
+            <element signature="e#107#108#0" expanded="true" />
522
+            <element signature="e#131#132#0" expanded="true" />
523
+            <element signature="e#197#198#0" expanded="true" />
524
+            <element signature="e#221#222#0" expanded="true" />
525
+          </folding>
526
+        </state>
527
+      </provider>
528
+    </entry>
529
+    <entry file="file://$PROJECT_DIR$/src/test/java/basikz/NormalizeAngleTest.java">
530
+      <provider selected="true" editor-type-id="text-editor">
531
+        <state relative-caret-position="80">
532
+          <caret line="8" column="14" selection-start-line="8" selection-start-column="14" selection-end-line="8" selection-end-column="14" />
533
+        </state>
534
+      </provider>
535
+    </entry>
536
+    <entry file="file://$PROJECT_DIR$/pom.xml">
537
+      <provider selected="true" editor-type-id="text-editor">
538
+        <state relative-caret-position="-159" />
539
+      </provider>
540
+    </entry>
541
+    <entry file="file://$PROJECT_DIR$/src/main/java/basikz/ShortCalculator.java">
542
+      <provider selected="true" editor-type-id="text-editor">
543
+        <state relative-caret-position="128">
544
+          <caret line="8" column="30" lean-forward="true" selection-start-line="8" selection-start-column="30" selection-end-line="8" selection-end-column="30" />
545
+          <folding>
546
+            <element signature="e#93#94#0" expanded="true" />
547
+            <element signature="e#126#127#0" expanded="true" />
548
+            <element signature="e#189#190#0" expanded="true" />
549
+            <element signature="e#233#234#0" expanded="true" />
550
+            <element signature="e#281#282#0" expanded="true" />
551
+            <element signature="e#325#326#0" expanded="true" />
552
+            <element signature="e#377#378#0" expanded="true" />
553
+            <element signature="e#421#422#0" expanded="true" />
554
+            <element signature="e#482#483#0" expanded="true" />
555
+            <element signature="e#526#527#0" expanded="true" />
556
+          </folding>
557
+        </state>
558
+      </provider>
559
+    </entry>
560
+    <entry file="file://$PROJECT_DIR$/src/test/java/basikz/ShortCalculatorTest.java">
561
+      <provider selected="true" editor-type-id="text-editor">
562
+        <state relative-caret-position="480">
563
+          <caret line="42" column="25" selection-start-line="42" selection-start-column="25" selection-end-line="42" selection-end-column="25" />
564
+          <folding>
565
+            <element signature="imports" expanded="true" />
566
+          </folding>
567
+        </state>
568
+      </provider>
569
+    </entry>
570
+  </component>
571
+  <component name="masterDetails">
572
+    <states>
573
+      <state key="ProjectJDKs.UI">
574
+        <settings>
575
+          <last-edited>1.8</last-edited>
576
+          <splitter-proportions>
577
+            <option name="proportions">
578
+              <list>
579
+                <option value="0.2" />
580
+              </list>
581
+            </option>
582
+          </splitter-proportions>
583
+        </settings>
584
+      </state>
585
+    </states>
586
+  </component>
587
+</project>

+ 25
- 0
README.md 查看文件

@@ -0,0 +1,25 @@
1
+# Integer Printer
2
+
3
+* Write a program that reads an integer and prints it in :
4
+1. binary
5
+2. Octal
6
+3. Hexadecimal
7
+
8
+
9
+# Normalize Angle
10
+* Write a program that reads an integer angle (which may be positive or negative) and normalizes it to a value between 0 and 359 degrees. Try it first with the % operator, then with floorMod.
11
+
12
+
13
+# Largest Integer
14
+
15
+* Using only the conditional operator, write a program that reads three integers and prints the largest. Repeat with Math.max
16
+
17
+
18
+# Factorial
19
+
20
+* Write a program that computes the factorial n! = 1 x 2 x ... x n, using BigInteger. Compute the factorial of 1000.
21
+
22
+
23
+# ShortValues
24
+
25
+* Write a program that reads in two numbers between 0 and 65535, stores them in short variables, and computes their unsigned sum, difference, product, quotient, and remainder , without converting them to int.

+ 107
- 0
package.bluej 查看文件

@@ -0,0 +1,107 @@
1
+#BlueJ package file
2
+dependency1.from=LargestIntegerTest
3
+dependency1.to=LargestInteger
4
+dependency1.type=UsesDependency
5
+dependency2.from=NormalizeAngleTest
6
+dependency2.to=NormalizeAngle
7
+dependency2.type=UsesDependency
8
+dependency3.from=FactorialTest
9
+dependency3.to=Factorial
10
+dependency3.type=UsesDependency
11
+dependency4.from=IntegerPrinterTest
12
+dependency4.to=IntegerPrinter
13
+dependency4.type=UsesDependency
14
+editor.fx.0.height=0
15
+editor.fx.0.width=0
16
+editor.fx.0.x=0
17
+editor.fx.0.y=0
18
+objectbench.height=101
19
+objectbench.width=1070
20
+package.divider.horizontal=0.6
21
+package.divider.vertical=0.837593984962406
22
+package.editor.height=550
23
+package.editor.width=968
24
+package.editor.x=59
25
+package.editor.y=82
26
+package.frame.height=723
27
+package.frame.width=1094
28
+package.numDependencies=4
29
+package.numTargets=10
30
+package.showExtends=true
31
+package.showUses=true
32
+project.charset=UTF-8
33
+readme.height=58
34
+readme.name=@README
35
+readme.width=47
36
+readme.x=10
37
+readme.y=10
38
+target1.height=50
39
+target1.name=Factorial
40
+target1.showInterface=false
41
+target1.type=ClassTarget
42
+target1.width=80
43
+target1.x=160
44
+target1.y=10
45
+target10.height=50
46
+target10.name=IntegerPrinterTest
47
+target10.showInterface=false
48
+target10.type=UnitTestTargetJunit4
49
+target10.width=140
50
+target10.x=10
51
+target10.y=370
52
+target2.height=50
53
+target2.name=NormalizeAngle
54
+target2.showInterface=false
55
+target2.type=ClassTarget
56
+target2.width=120
57
+target2.x=70
58
+target2.y=70
59
+target3.height=50
60
+target3.name=IntegerPrinter
61
+target3.showInterface=false
62
+target3.type=ClassTarget
63
+target3.width=110
64
+target3.x=10
65
+target3.y=130
66
+target4.height=50
67
+target4.name=ShortCalculator
68
+target4.showInterface=false
69
+target4.type=ClassTarget
70
+target4.width=120
71
+target4.x=130
72
+target4.y=130
73
+target5.height=50
74
+target5.name=LargestInteger
75
+target5.showInterface=false
76
+target5.type=ClassTarget
77
+target5.width=120
78
+target5.x=10
79
+target5.y=190
80
+target6.height=50
81
+target6.name=LargestIntegerTest
82
+target6.showInterface=false
83
+target6.type=UnitTestTargetJunit4
84
+target6.width=140
85
+target6.x=250
86
+target6.y=190
87
+target7.height=50
88
+target7.name=ShortCalculatorTest
89
+target7.showInterface=false
90
+target7.type=ClassTarget
91
+target7.width=150
92
+target7.x=10
93
+target7.y=250
94
+target8.height=50
95
+target8.name=NormalizeAngleTest
96
+target8.showInterface=false
97
+target8.type=UnitTestTargetJunit4
98
+target8.width=150
99
+target8.x=10
100
+target8.y=310
101
+target9.height=50
102
+target9.name=FactorialTest
103
+target9.showInterface=false
104
+target9.type=UnitTestTargetJunit4
105
+target9.width=110
106
+target9.x=410
107
+target9.y=260

+ 75
- 0
pom.xml 查看文件

@@ -0,0 +1,75 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<project xmlns="http://maven.apache.org/POM/4.0.0" 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>basik-komputashins</groupId>
8
+  <artifactId>riproderilmington</artifactId>
9
+  <version>1.0-SNAPSHOT</version>
10
+
11
+  <name>riproderilmington</name>
12
+  <!-- FIXME change it to the project's website -->
13
+  <url>http://www.example.com</url>
14
+
15
+  <properties>
16
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17
+    <maven.compiler.source>1.7</maven.compiler.source>
18
+    <maven.compiler.target>1.7</maven.compiler.target>
19
+  </properties>
20
+
21
+  <dependencies>
22
+    <dependency>
23
+      <groupId>junit</groupId>
24
+      <artifactId>junit</artifactId>
25
+      <version>4.11</version>
26
+      <scope>test</scope>
27
+    </dependency>
28
+  </dependencies>
29
+
30
+  <build>
31
+    <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
32
+      <plugins>
33
+        <plugin>
34
+          <artifactId>maven-clean-plugin</artifactId>
35
+          <version>3.0.0</version>
36
+        </plugin>
37
+        <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
38
+        <plugin>
39
+          <artifactId>maven-resources-plugin</artifactId>
40
+          <version>3.0.2</version>
41
+        </plugin>
42
+        <plugin>
43
+          <artifactId>maven-compiler-plugin</artifactId>
44
+          <version>3.7.0</version>
45
+        </plugin>
46
+        <plugin>
47
+          <artifactId>maven-surefire-plugin</artifactId>
48
+          <version>2.20.1</version>
49
+        </plugin>
50
+        <plugin>
51
+          <artifactId>maven-jar-plugin</artifactId>
52
+          <version>3.0.2</version>
53
+        </plugin>
54
+        <plugin>
55
+          <artifactId>maven-install-plugin</artifactId>
56
+          <version>2.5.2</version>
57
+        </plugin>
58
+        <plugin>
59
+          <artifactId>maven-deploy-plugin</artifactId>
60
+          <version>2.8.2</version>
61
+        </plugin>
62
+      </plugins>
63
+    </pluginManagement>
64
+    <plugins>
65
+      <plugin>
66
+        <groupId>org.apache.maven.plugins</groupId>
67
+        <artifactId>maven-compiler-plugin</artifactId>
68
+        <configuration>
69
+          <source>8</source>
70
+          <target>8</target>
71
+        </configuration>
72
+      </plugin>
73
+    </plugins>
74
+  </build>
75
+</project>

+ 2
- 0
riproderilmington.iml 查看文件

@@ -0,0 +1,2 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4" />

+ 14
- 0
src/main/java/basikz/Factorial.java 查看文件

@@ -0,0 +1,14 @@
1
+package basikz;
2
+import java.math.BigInteger;
3
+
4
+public class Factorial {
5
+
6
+    public BigInteger factorialOf(Integer value){
7
+        int result = 1;
8
+        for (int i = 1; i <= value; i++) {
9
+            result *= i;
10
+        }
11
+        return BigInteger.valueOf(result);
12
+    }
13
+
14
+}

+ 20
- 0
src/main/java/basikz/IntegerPrinter.java 查看文件

@@ -0,0 +1,20 @@
1
+package basikz;
2
+
3
+public class IntegerPrinter {
4
+
5
+    public String printIntegerAsBinary(int value){
6
+        return Integer.toBinaryString(value);
7
+    }
8
+
9
+    public String printIntegerAsOctal(int value){
10
+        return Integer.toOctalString(value);
11
+    }
12
+
13
+    public String printIntegerAsHexadecimal(int value){
14
+        return Integer.toHexString(value);
15
+    }
16
+
17
+    public static void main(String[] args){
18
+
19
+    }
20
+}

+ 15
- 0
src/main/java/basikz/LargestInteger.java 查看文件

@@ -0,0 +1,15 @@
1
+package basikz;
2
+
3
+
4
+public class LargestInteger {
5
+
6
+    public Integer findLargestNumberUsingConditional(Integer[] integers){
7
+        int max = 0;
8
+        for (int num : integers) max = num > max ? num : max;
9
+        return max;
10
+    }
11
+
12
+    public Integer findLargestNumberUsingMathMax(Integer[] integers){
13
+        return Math.max(integers[0], Math.max(integers[1], integers[2]));
14
+    }
15
+}

+ 16
- 0
src/main/java/basikz/NormalizeAngle.java 查看文件

@@ -0,0 +1,16 @@
1
+package basikz;
2
+
3
+public class NormalizeAngle {
4
+
5
+    public Integer normalizeValueUsingModulo(Integer angle){
6
+        return angle % 360;
7
+    }
8
+
9
+    public Integer normalizeValueUsingFloorMod(Integer integer){
10
+        return Math.floorMod(integer, 360);
11
+    }
12
+
13
+    public static void main(String[] args){
14
+
15
+    }
16
+}

+ 23
- 0
src/main/java/basikz/ShortCalculator.java 查看文件

@@ -0,0 +1,23 @@
1
+package basikz;
2
+
3
+public class ShortCalculator {
4
+    public short add(short num1, short num2) {
5
+        return (short) (num1 + num2);
6
+    }
7
+
8
+    public short subtract(short num1, short num2) {
9
+        return (short) (num1 - num2);
10
+    }
11
+
12
+    public short divide(short num1, short num2) {
13
+        return (short) (num1 / num2);
14
+    }
15
+
16
+    public short multiply(short num1, short num2) {
17
+        return (short) (num1 * num2);
18
+    }
19
+
20
+    public short mod(short num1, short num2) {
21
+        return (short) (num1 & num2);
22
+    }
23
+}

+ 31
- 0
src/test/java/basikz/FactorialTest.java 查看文件

@@ -0,0 +1,31 @@
1
+package basikz;
2
+
3
+
4
+import basikz.Factorial;
5
+import org.junit.Assert;
6
+import org.junit.Before;
7
+import org.junit.Test;
8
+
9
+import java.math.BigInteger;
10
+
11
+public class FactorialTest {
12
+
13
+    private Factorial factorial;
14
+
15
+    @Before
16
+    public void setUp(){
17
+        factorial = new Factorial();
18
+    }
19
+
20
+    @Test
21
+    public void factorialOfTest(){
22
+        //:Given
23
+        BigInteger expected = new BigInteger("24");
24
+
25
+        //:When
26
+        BigInteger actual = factorial.factorialOf(4);
27
+
28
+        //:Then
29
+        Assert.assertEquals("Values should be equal", expected, actual);
30
+    }
31
+}

+ 54
- 0
src/test/java/basikz/IntegerPrinterTest.java 查看文件

@@ -0,0 +1,54 @@
1
+package basikz;
2
+
3
+
4
+import basikz.IntegerPrinter;
5
+import org.junit.Assert;
6
+import org.junit.Before;
7
+import org.junit.Test;
8
+
9
+public class IntegerPrinterTest {
10
+
11
+    IntegerPrinter integerPrinter;
12
+
13
+    @Before
14
+    public void setUp(){
15
+        integerPrinter = new IntegerPrinter();
16
+    }
17
+
18
+    @Test
19
+    public void printIntegerAsBinaryTest(){
20
+        //:Given
21
+        String expected = "111110100";
22
+
23
+        //:When
24
+        String actual = integerPrinter.printIntegerAsBinary(500);
25
+
26
+        //:Then
27
+        Assert.assertEquals("The value equals 111110100", expected, actual);
28
+    }
29
+
30
+    @Test
31
+    public void printIntegerAsHexadecimal(){
32
+        //:Given
33
+        String expected = "1f4";
34
+
35
+        //:When
36
+        String actual = integerPrinter.printIntegerAsHexadecimal(500);
37
+
38
+        //:Then
39
+        Assert.assertEquals("The value equals 1f4", expected, actual);
40
+    }
41
+
42
+    @Test
43
+    public void printIntegerAsOctalTest(){
44
+        //:Given
45
+        String expected = "764";
46
+
47
+        //:When
48
+        String actual = integerPrinter.printIntegerAsOctal(500);
49
+
50
+        //:Then
51
+        Assert.assertEquals("The value equals 764", expected, actual);
52
+    }
53
+
54
+}

+ 40
- 0
src/test/java/basikz/LargestIntegerTest.java 查看文件

@@ -0,0 +1,40 @@
1
+package basikz;
2
+
3
+import basikz.LargestInteger;
4
+import org.junit.Assert;
5
+import org.junit.Before;
6
+import org.junit.Test;
7
+
8
+public class LargestIntegerTest {
9
+
10
+    private LargestInteger largestInteger;
11
+
12
+    @Before
13
+    public void setUp(){
14
+        largestInteger = new LargestInteger();
15
+    }
16
+
17
+    @Test
18
+    public void findLargestNumberUsingConditionalTest(){
19
+        // :Given
20
+        Integer expected = 30;
21
+
22
+        // :When
23
+        Integer actual = largestInteger.findLargestNumberUsingConditional(new Integer[]{30,20,10});
24
+
25
+        // :Then
26
+        Assert.assertEquals("The Largest Number should be 30", expected, actual);
27
+    }
28
+
29
+    @Test
30
+    public void findLargestNumberUsingMathMaxTest(){
31
+        // :Given
32
+        Integer expected = 600;
33
+
34
+        // :When
35
+        Integer actual = largestInteger.findLargestNumberUsingMathMax(new Integer[]{300,200,600});
36
+
37
+        // :Then
38
+        Assert.assertEquals("The Largest Number should be 600.", expected, actual);
39
+    }
40
+}

+ 41
- 0
src/test/java/basikz/NormalizeAngleTest.java 查看文件

@@ -0,0 +1,41 @@
1
+package basikz;
2
+
3
+
4
+import basikz.NormalizeAngle;
5
+import org.junit.Assert;
6
+import org.junit.Before;
7
+import org.junit.Test;
8
+
9
+public class NormalizeAngleTest {
10
+
11
+    private NormalizeAngle normalizeAngle;
12
+
13
+    @Before
14
+    public void setUp(){
15
+        normalizeAngle = new NormalizeAngle();
16
+    }
17
+
18
+    @Test
19
+    public void normalizeValueUsingModuloTest(){
20
+        //:Given
21
+        Integer expected = 60;
22
+
23
+        //:When
24
+        Integer actual = normalizeAngle.normalizeValueUsingModulo(780);
25
+
26
+        //:Then
27
+        Assert.assertEquals("The value equals 60", expected, actual);
28
+    }
29
+
30
+    @Test
31
+    public void normalizeValueUsingFloorModTest(){
32
+        //:Given
33
+        Integer expected = 60;
34
+
35
+        //:When
36
+        Integer actual = normalizeAngle.normalizeValueUsingFloorMod(780);
37
+
38
+        //:Then
39
+        Assert.assertEquals("The value equals 60", expected, actual);
40
+    }
41
+}

+ 48
- 0
src/test/java/basikz/ShortCalculatorTest.java 查看文件

@@ -0,0 +1,48 @@
1
+import basikz.ShortCalculator;
2
+import org.junit.Before;
3
+import org.junit.Test;
4
+import static org.junit.Assert.*;
5
+
6
+public class ShortCalculatorTest {
7
+    ShortCalculator sc = new ShortCalculator();
8
+
9
+    @Before
10
+    public void setUp() {
11
+        sc = new ShortCalculator();
12
+    }
13
+
14
+    @Test
15
+    public void addTest() {
16
+        short expected = 5;
17
+        short actual = sc.add((short) 2, (short) 3);
18
+        assertEquals(expected, actual);
19
+    }
20
+
21
+    @Test
22
+    public void divideTest() {
23
+        short expected = 2;
24
+        short actual = sc.divide((short) 6, (short) 3);
25
+        assertEquals(expected, actual);
26
+    }
27
+
28
+    @Test
29
+    public void subtractTest() {
30
+        short expected = 5;
31
+        short actual = sc.subtract((short) 10, (short) 5);
32
+        assertEquals(expected, actual);
33
+    }
34
+
35
+    @Test
36
+    public void multiplyTest() {
37
+        short expected = 6;
38
+        short actual = sc.multiply((short) 2, (short) 3);
39
+        assertEquals(expected, actual);
40
+    }
41
+
42
+    @Test
43
+    public void modTest() {
44
+        short expected = 2;
45
+        short actual = sc.mod((short) 2, (short) 3);
46
+        assertEquals(expected, actual);
47
+    }
48
+}

二進制
target/classes/basikz/Factorial.class 查看文件


二進制
target/classes/basikz/IntegerPrinter.class 查看文件


二進制
target/classes/basikz/LargestInteger.class 查看文件


二進制
target/classes/basikz/NormalizeAngle.class 查看文件


二進制
target/classes/basikz/ShortCalculator.class 查看文件


二進制
target/test-classes/ShortCalculatorTest.class 查看文件


二進制
target/test-classes/basikz/FactorialTest.class 查看文件


二進制
target/test-classes/basikz/IntegerPrinterTest.class 查看文件


二進制
target/test-classes/basikz/LargestIntegerTest.class 查看文件


二進制
target/test-classes/basikz/NormalizeAngleTest.class 查看文件