mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-09 20:20:56 +08:00
Update CountWords.java
Cleaning the code
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user