title: importing a final class in Java
body: <p>I have declared this class:
   </p>
  
  <pre><code>public final class Constants {
  
       public static final String PROFILE_PCT__FILTER_NAME_ID = "profilePct";
  
  }
  </code></pre>
  
  <p>I want to use that class in another class with..</p>
  
  <pre><code>import static com.tdk.utils.Constants.*;
  </code></pre>
  
  <p>But I got this compilation error:</p>
  
  <blockquote>
    <p>Constants cannot be resolved to a variable</p>
  </blockquote>