title: Read from a string until specific char in Android
body: <p>How can I read numbers from a string until I find a specific char, in my case - a dot.</p>
  
  <p>For example I have a </p>
  
  <pre><code>String date = "18.8.2011"
  int mDay = 0;
  int mMonth = 0;
  int mYear = 0;
  </code></pre>
  
  <p>And I want to make <code>mDay = 18</code>, <code>mMonth = 8</code> and <code>mYear = 2011</code> - I want to be able to copy the digits until I find a dot.</p>