From 6c4e8d0f91dcdea033218a1caec1cc4d16335636 Mon Sep 17 00:00:00 2001 From: Himanshi <143955457+123himanshi-khatri@users.noreply.github.com> Date: Tue, 7 Oct 2025 23:33:56 +0530 Subject: [PATCH] Update MyString.java --- MyString.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+");