I was trying to split a string into an array of single letters. Here\'s what I did,
String str = \"abcddadfad\";
System.out.println(str.length()); // ou
I'd have to read the code, to understand exactly how "" works as a regular expression. However, remember it's matching the empty string... and the argument is a regular expression, and the javadoc mentions that calling split(regex) is the same as calling split(regex,0). Therefore it will NOT try to match again if the remaining string is all whitespace (or emptystring), which is why it doesn't match the final emptystring after the last character.
The better function to call might be str.toCharArray();