title: Tokenize problem in Java with separator ". "
body: <p>I need to split a text using the separator <code>". "</code>. For example I want this string :</p>
  
  <pre><code>Washington is the U.S Capital. Barack is living there.
  </code></pre>
  
  <p>To be cut into two parts:</p>
  
  <pre><code>Washington is the U.S Capital. 
  Barack is living there.
  </code></pre>
  
  <p>Here is my code :</p>
  
  <pre><code>// Initialize the tokenizer
  StringTokenizer tokenizer = new StringTokenizer("Washington is the U.S Capital. Barack is living there.", ". ");
   while (tokenizer.hasMoreTokens()) {
        System.out.println(tokenizer.nextToken());
  
  }
  </code></pre>
  
  <p>And the output is unfortunately :</p>
  
  <pre><code>Washington
  is
  the
  U
  S
  Capital
  Barack
  is
  living
  there
  </code></pre>
  
  <p>Can someone explain what's going on?</p>