title: Name clash in java imports
body: <p>Unless we <a href="https://stackoverflow.com/questions/9613392/what-need-to-be-done-to-implement-import-as-in-java#9613822">change the compiler</a>, Java misses the <code>import X as Y</code> syntax, which would be useful in cases like mine: In this very moment I'm working on a project having multiple classes with the same name, but belonging to different packages.</p>
  
  <p>I would like to have something like</p>
  
  <pre><code>import com.very.long.prefix.bar.Foo as BarFoo
  import org.other.very.long.prefix.baz.Foo as BazFoo
  
  class X {
      BarFoo a;
      BazFoo b;
      ...
  }
  </code></pre>
  
  <p>Instead I  finish in having something like</p>
  
  <pre><code>class X {
      com.very.long.prefix.bar.Foo a;
      org.other.very.long.prefix.baz.Foo b;
      ...
  }
  </code></pre>
  
  <p>Here it seems pretty harmful, but on my specific case I need to use horizontal scrolling in order to browse my source code, and that concours in making worse a program which is already a mess.</p>
  
  <p>In your experience, what is the best practices in this case?</p>