title: Copy a string until character found in Java
body: <p>Hello I was wandering how can I copy a piece of a String in Java until a character/symbol is found. 
  In my case the original string is: <code>"hello.1234"</code> and I want only <code>"hello"</code>, so that every thing after the symbol <code>.</code> is discarded.</p>
  
  <p>Any idea? many thanks</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>solved as follows:</p>
  
  <pre><code>String partBeforeFullStop = input.split("\\.")[0];
  </code></pre>