Merge pull request #1123 from UntouchedOdin0/patch-6

Update CountWords.java
This commit is contained in:
Yang Libin
2019-10-24 14:26:37 +08:00
committed by GitHub

View File

@ -44,7 +44,5 @@ public class CountWords {
}
s = sb.toString();
return s.trim().split("[\\s]+").length;
}
}