title: Java Date object constructor for getting string is deprecated
body: <p>I have problem using Date in java,
  I have a string that represent a date for example String date = "23/10/2012";
  and i have a function that get a date as parameter, for example</p>
  
  <pre><code>public void foo(Date date){...}
  </code></pre>
  
  <p>my problem is that Date constructor that accept a string is deprecated and i do not want to use
  a deprecated  object.</p>