diff --git a/MyString.java b/MyString.java index e2cb511..73e6a2c 100644 --- a/MyString.java +++ b/MyString.java @@ -29,7 +29,7 @@ public int countWords() { if (temp.isEmpty()) return 0; //this is to count words in the string // Split by whitespace - // \s+ means one or more whitespace characters + String[] words = temp.split("\\s+");