I am trying to figure out how it works, I tried several different examples and I just don't uderstand the results I'm getting. fot example using it on string such as:
String s1 = "Hello there how are you";
String [] sa1 = s1.split("\\s");
will return array with 5 elements which are obvious and this makes sense to me. How about this:
String s1 = "Hello there how are you";
String [] sa1 = s1.split("\\S");
returns array of 17 empty strings... Could someone help me understanding it please?