SyntaxFix
Write A Post
Hire A Developer
Questions
This regex will split word by space like space, tab, line break:
String[] str = s.split("\\s+");