title: java - after splitting a string, what is the first element in the array?
body: <p>I was trying to split a string into an array of single letters. Here's what I did,</p>
  
  <pre><code>String str = "abcddadfad"; 
  System.out.println(str.length());    //  output: 10  
  String[] strArr = str.split("");  
  System.out.println(strArr.length);   //  output: 11   
  System.out.println(strArr[0]);       // output is nothing 
  </code></pre>
  
  <p>The new array did contain all the letters, however it has nothing at index 0,not even a white space, but still incremented the size of my array. Can anyone explain why this is happening?</p>