title: Use of the java.awt.Dimension class
body: <p>I would like to use <code>Dimension</code> class (<code>java.awt.Dimension</code>), but it supports only integers. I want make Rectangle and Square classes like these:</p>
  
  <p>Constructor:</p>
  
  <pre><code>public Rectangle(Dimension dim(double A, double B)) {
      // constructor code
  }
  </code></pre>
  
  <p>Is it better to write my own implementation of the Dimension class?</p>