title: Confusing output from String.split
body: <p>I do not understand the output of this code:</p>
  
  <pre><code>public class StringDemo{              
      public static void main(String args[]) {
          String blank = "";                    
          String comma = ",";                   
          System.out.println("Output1: "+blank.split(",").length);  
          System.out.println("Output2: "+comma.split(",").length);  
      }
  }
  </code></pre>
  
  <p>And got the following output:</p>
  
  <pre><code>Output1: 1 
  Output2: 0
  </code></pre>