瀏覽代碼

new changes

Xcuello 5 年之前
父節點
當前提交
13caeb7a39
共有 7 個文件被更改,包括 241 次插入5 次删除
  1. 9
    0
      .idea/JavaStringCheese.iml
  2. 6
    0
      .idea/misc.xml
  3. 8
    0
      .idea/modules.xml
  4. 6
    0
      .idea/vcs.xml
  5. 196
    0
      .idea/workspace.xml
  6. 12
    1
      StringParser.java
  7. 4
    4
      package.bluej

+ 9
- 0
.idea/JavaStringCheese.iml 查看文件

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

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

@@ -0,0 +1,6 @@
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
+</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$/.idea/JavaStringCheese.iml" filepath="$PROJECT_DIR$/.idea/JavaStringCheese.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="" vcs="Git" />
5
+  </component>
6
+</project>

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

@@ -0,0 +1,196 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="62956067-07f0-4013-b5ec-a36752b14a56" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/StringParser.java" beforeDir="false" afterPath="$PROJECT_DIR$/StringParser.java" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/package.bluej" beforeDir="false" afterPath="$PROJECT_DIR$/package.bluej" afterDir="false" />
7
+    </list>
8
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" 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="FUSProjectUsageTrigger">
15
+    <session id="-1622128631">
16
+      <usages-collector id="statistics.lifecycle.project">
17
+        <counts>
18
+          <entry key="project.closed" value="13" />
19
+          <entry key="project.open.time.0" value="8" />
20
+          <entry key="project.open.time.1" value="4" />
21
+          <entry key="project.open.time.7" value="1" />
22
+          <entry key="project.opened" value="13" />
23
+        </counts>
24
+      </usages-collector>
25
+      <usages-collector id="statistics.file.extensions.open">
26
+        <counts>
27
+          <entry key="java" value="1" />
28
+        </counts>
29
+      </usages-collector>
30
+      <usages-collector id="statistics.file.types.open">
31
+        <counts>
32
+          <entry key="JAVA" value="1" />
33
+        </counts>
34
+      </usages-collector>
35
+      <usages-collector id="statistics.file.extensions.edit">
36
+        <counts>
37
+          <entry key="java" value="6" />
38
+        </counts>
39
+      </usages-collector>
40
+      <usages-collector id="statistics.file.types.edit">
41
+        <counts>
42
+          <entry key="JAVA" value="6" />
43
+        </counts>
44
+      </usages-collector>
45
+    </session>
46
+  </component>
47
+  <component name="FileEditorManager">
48
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
49
+      <file pinned="false" current-in-tab="true">
50
+        <entry file="file://$PROJECT_DIR$/StringParser.java">
51
+          <provider selected="true" editor-type-id="text-editor">
52
+            <state relative-caret-position="-548">
53
+              <caret line="55" column="20" selection-start-line="55" selection-start-column="20" selection-end-line="55" selection-end-column="20" />
54
+            </state>
55
+          </provider>
56
+        </entry>
57
+      </file>
58
+    </leaf>
59
+  </component>
60
+  <component name="Git.Settings">
61
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
62
+  </component>
63
+  <component name="IdeDocumentHistory">
64
+    <option name="CHANGED_PATHS">
65
+      <list>
66
+        <option value="$PROJECT_DIR$/StringParser.java" />
67
+      </list>
68
+    </option>
69
+  </component>
70
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
71
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
72
+  <component name="JsGulpfileManager">
73
+    <detection-done>true</detection-done>
74
+    <sorting>DEFINITION_ORDER</sorting>
75
+  </component>
76
+  <component name="ProjectFrameBounds" extendedState="6">
77
+    <option name="y" value="23" />
78
+    <option name="width" value="1280" />
79
+    <option name="height" value="701" />
80
+  </component>
81
+  <component name="ProjectView">
82
+    <navigator proportions="" version="1">
83
+      <foldersAlwaysOnTop value="true" />
84
+    </navigator>
85
+    <panes>
86
+      <pane id="ProjectPane">
87
+        <subPane>
88
+          <expand>
89
+            <path>
90
+              <item name="JavaStringCheese" type="b2602c69:ProjectViewProjectNode" />
91
+              <item name="JavaStringCheese" type="462c0819:PsiDirectoryNode" />
92
+            </path>
93
+          </expand>
94
+          <select />
95
+        </subPane>
96
+      </pane>
97
+      <pane id="PackagesPane" />
98
+      <pane id="Scope" />
99
+    </panes>
100
+  </component>
101
+  <component name="PropertiesComponent">
102
+    <property name="WebServerToolWindowFactoryState" value="false" />
103
+    <property name="aspect.path.notification.shown" value="true" />
104
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
105
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
106
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
107
+  </component>
108
+  <component name="RunDashboard">
109
+    <option name="ruleStates">
110
+      <list>
111
+        <RuleState>
112
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
113
+        </RuleState>
114
+        <RuleState>
115
+          <option name="name" value="StatusDashboardGroupingRule" />
116
+        </RuleState>
117
+      </list>
118
+    </option>
119
+  </component>
120
+  <component name="SvnConfiguration">
121
+    <configuration />
122
+  </component>
123
+  <component name="TaskManager">
124
+    <task active="true" id="Default" summary="Default task">
125
+      <changelist id="62956067-07f0-4013-b5ec-a36752b14a56" name="Default Changelist" comment="" />
126
+      <created>1543515782350</created>
127
+      <option name="number" value="Default" />
128
+      <option name="presentableId" value="Default" />
129
+      <updated>1543515782350</updated>
130
+      <workItem from="1543515783797" duration="196000" />
131
+      <workItem from="1543520289002" duration="18000" />
132
+      <workItem from="1543524945494" duration="21000" />
133
+      <workItem from="1543525061754" duration="1000" />
134
+      <workItem from="1543623377419" duration="46000" />
135
+      <workItem from="1543623846897" duration="3000" />
136
+      <workItem from="1543965182872" duration="18000" />
137
+      <workItem from="1544110458234" duration="7000" />
138
+      <workItem from="1544133368618" duration="16000" />
139
+      <workItem from="1544133906957" duration="15000" />
140
+      <workItem from="1544455658165" duration="16000" />
141
+      <workItem from="1544455741665" duration="12000" />
142
+      <workItem from="1546640933433" duration="16000" />
143
+    </task>
144
+    <servers />
145
+  </component>
146
+  <component name="TimeTrackingManager">
147
+    <option name="totallyTimeSpent" value="385000" />
148
+  </component>
149
+  <component name="ToolWindowManager">
150
+    <frame x="0" y="23" width="1280" height="698" extended-state="6" />
151
+    <layout>
152
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.30048466" />
153
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
154
+      <window_info id="Image Layers" order="2" />
155
+      <window_info id="Designer" order="3" />
156
+      <window_info id="UI Designer" order="4" />
157
+      <window_info id="Capture Tool" order="5" />
158
+      <window_info id="Favorites" order="6" side_tool="true" />
159
+      <window_info anchor="bottom" id="Message" order="0" />
160
+      <window_info anchor="bottom" id="Find" order="1" />
161
+      <window_info anchor="bottom" id="Run" order="2" />
162
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
163
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
164
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
165
+      <window_info anchor="bottom" id="TODO" order="6" />
166
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
167
+      <window_info anchor="bottom" id="Terminal" order="8" />
168
+      <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
169
+      <window_info anchor="bottom" id="Version Control" order="10" />
170
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
171
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
172
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
173
+      <window_info anchor="right" id="Palette" order="3" />
174
+      <window_info anchor="right" id="Capture Analysis" order="4" />
175
+      <window_info anchor="right" id="Theme Preview" order="5" />
176
+      <window_info anchor="right" id="Palette&#9;" order="6" />
177
+      <window_info anchor="right" id="Database" order="7" />
178
+      <window_info anchor="right" id="Maven Projects" order="8" />
179
+    </layout>
180
+  </component>
181
+  <component name="TypeScriptGeneratedFilesManager">
182
+    <option name="version" value="1" />
183
+  </component>
184
+  <component name="VcsContentAnnotationSettings">
185
+    <option name="myLimit" value="2678400000" />
186
+  </component>
187
+  <component name="editorHistoryManager">
188
+    <entry file="file://$PROJECT_DIR$/StringParser.java">
189
+      <provider selected="true" editor-type-id="text-editor">
190
+        <state relative-caret-position="-548">
191
+          <caret line="55" column="20" selection-start-line="55" selection-start-column="20" selection-end-line="55" selection-end-column="20" />
192
+        </state>
193
+      </provider>
194
+    </entry>
195
+  </component>
196
+</project>

+ 12
- 1
StringParser.java 查看文件

@@ -52,6 +52,7 @@ public class StringParser
52 52
      * @return String
53 53
      */
54 54
     public static Character getNthCharacter(String s, Integer n) {
55
+
55 56
         return s.charAt(n);
56 57
     }
57 58
 
@@ -63,7 +64,8 @@ public class StringParser
63 64
      * @return String
64 65
      */
65 66
     public static String upperCaseFirstCharacter(String s) {
66
-        return s = Character.toUpperCase(s.charAt(0)) + s.substring(1); 
67
+
68
+        return s = Character.toUpperCase(s.charAt(0)) + s.substring(1);
67 69
     }
68 70
 
69 71
     /**
@@ -77,10 +79,15 @@ public class StringParser
77 79
     public static String camelCaseString(String s) {
78 80
 
79 81
         String camalCase2 = "";
82
+
80 83
         String camalCase3 = s.toLowerCase();
84
+
81 85
         String[] camalCase = camalCase3.split(" ");
86
+
82 87
         for(int i = 0; i < camalCase.length; i++){
88
+
83 89
             camalCase2 += camalCase[i].substring(0,1).toUpperCase();
90
+
84 91
             camalCase2 += camalCase[i].substring(1);
85 92
         }
86 93
         return camalCase2;
@@ -95,6 +102,7 @@ public class StringParser
95 102
      * @return String
96 103
      */
97 104
     public static String snakeCaseString(String s) {
105
+
98 106
         return s.replace(" ","_").toLowerCase();
99 107
     }
100 108
 
@@ -106,6 +114,7 @@ public class StringParser
106 114
      * @return String
107 115
      */
108 116
     public static Integer getLength(String s) {
117
+
109 118
         return s.length();
110 119
     }
111 120
 
@@ -120,6 +129,7 @@ public class StringParser
120 129
      * @return String
121 130
      */
122 131
     public static Boolean isEqual(String s1, String s2) {
132
+
123 133
         return  s1.equals(s2);
124 134
     }
125 135
 
@@ -134,6 +144,7 @@ public class StringParser
134 144
      * @return String
135 145
      */
136 146
     public static Boolean isEqualIgnoreCase(String s1, String s2) {
147
+
137 148
         return s1.equalsIgnoreCase(s2);
138 149
     }
139 150
 }

+ 4
- 4
package.bluej 查看文件

@@ -2,10 +2,10 @@
2 2
 dependency1.from=StringParserTest
3 3
 dependency1.to=StringParser
4 4
 dependency1.type=UsesDependency
5
-editor.fx.0.height=714
6
-editor.fx.0.width=902
7
-editor.fx.0.x=350
8
-editor.fx.0.y=23
5
+editor.fx.0.height=0
6
+editor.fx.0.width=0
7
+editor.fx.0.x=0
8
+editor.fx.0.y=0
9 9
 objectbench.height=164
10 10
 objectbench.width=776
11 11
 package.divider.horizontal=0.6