title: Dynamic import programmatically
body: <p>I simply want to implement that line programmatically in runtime.</p>
  
  <blockquote>
    <p>import com.company.package.*;</p>
  </blockquote>
  
  <p>I can't believe all the searches lead to Python, and I certainly would prefer not loading classes and looping one by one. It must be a faster command.</p>
  
  <p>Any suggestion?</p>
  
  <p>P.S: I know it's not the best of designs, but I am doing it through a JSP, so perhaps there is some way to use a parameter in the declaration as in</p>
  
  <p><code>&lt;%@ page import=%{myPackage} %&gt;</code></p>