Update CountWords.java

Cleaning the code
This commit is contained in:
UntouchedOdin0 2019-10-23 21:30:19 +01:00 committed by GitHub
parent a60cb58be8
commit 3a8ab829a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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