title: How to import java class?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/187453/import-package-vs-import-package-specifictype">Import package.* vs import package.SpecificType</a>  </p>
  </blockquote>
  
  
  
  <p>Can I do:</p>
  
  <pre><code>import java.awt.*
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>import java.awt.BorderLayout;
  import java.awt.Dimension;
  import java.awt.Toolkit;
  import java.awt.event.ActionEvent;
  import java.awt.event.ActionListener;
  </code></pre>
  
  <p>if both ways are correct which one is better?</p>