title: Date in constructor in Java
body: <p>I have a class with the constructor:</p>
  
  <pre><code>...
  Date d1;
  Date d2;
  public DateClass(Date d1, Date d2) {
     this.d1 = d1;
     this.d2 = d2;
  }
  ...
  </code></pre>
  
  <p>Then in another class I want to use this constructor:</p>
  
  <pre><code>...
  DateClass d = new DateClass(what I should I write here to create Date in format mm-dd-yyyy);
  System.out.println(d);
  ...
  </code></pre>
  
  <p>Thank you!
  P.S This in not a part of a homework. I really do not know how to do it.</p>