瀏覽代碼

allTestsPassNow

Roy 6 年之前
父節點
當前提交
80bf599333
共有 2 個文件被更改,包括 9 次插入9 次删除
  1. 1
    1
      StringUtilities.java
  2. 8
    8
      package.bluej

+ 1
- 1
StringUtilities.java 查看文件

@@ -93,7 +93,7 @@ public class StringUtilities {
93 93
      * @return an identical string with spaces removed.
94 94
      */
95 95
     public String removeWhitespace(String input){
96
-        return null;
96
+        return input.replaceAll("\\s", "");
97 97
     }
98 98
 
99 99
     /**

+ 8
- 8
package.bluej 查看文件

@@ -1,17 +1,17 @@
1 1
 #BlueJ package file
2
-dependency1.from=StringUtilitiesTest
3
-dependency1.to=StringUtilities
2
+dependency1.from=PredicateUtilitiesTest
3
+dependency1.to=PredicateUtilities
4 4
 dependency1.type=UsesDependency
5
-dependency2.from=PredicateUtilitiesTest
6
-dependency2.to=PredicateUtilities
5
+dependency2.from=StringUtilitiesTest
6
+dependency2.to=StringUtilities
7 7
 dependency2.type=UsesDependency
8 8
 dependency3.from=MathUtilitiesTest
9 9
 dependency3.to=MathUtilities
10 10
 dependency3.type=UsesDependency
11
-editor.fx.0.height=0
12
-editor.fx.0.width=0
13
-editor.fx.0.x=0
14
-editor.fx.0.y=0
11
+editor.fx.0.height=709
12
+editor.fx.0.width=800
13
+editor.fx.0.x=240
14
+editor.fx.0.y=23
15 15
 objectbench.height=145
16 16
 objectbench.width=776
17 17
 package.divider.horizontal=0.6