title: Short name for imported constant class fields
body: <p>I have a java program with hundreds of configuration constants:</p>
  
  <pre><code>public static final String C1="C1";
  public static final String C2="C2";
  </code></pre>
  
  <p>Since there are so many of them, I've put them into a separate class, <code>MyClassConstants</code>.
  Now, I need to use them on <code>MyClass</code>:</p>
  
  <pre><code>import mynamespace.MyClassConstants;
  myMethod( MyClassConstants.C1, MyClassConstants.C2 );
  </code></pre>
  
  <p>This gets very verbose very fast, so I was wondering if it was possible to somehow import the fields directly:</p>
  
  <pre><code>import mynamespace.MyClassConstants.*; 
  myMethod( C1, C2 ); //doesn't work
  </code></pre>
  
  <p>Or at the very least, rename the import:</p>
  
  <pre><code>import mynamespace.MyClassConstants as C; //javac hates me
  myMethod( C.C1, C.C2 );
  </code></pre>
  
  <p>But <a href="https://stackoverflow.com/questions/5767864/java-is-there-a-way-we-can-import-a-class-under-another-name">it seems this later approach is impossible</a></p>
  
  <p>Is there a way to do this and still have a meaningful class name for the constants? Or should I use another approach?</p>