title: What need to be done to implement "import ... as ..." in java
body: <p>If this is possible, what part of java compiler need to be re-engineered to has an "import as" statement, so codes can look like this way:</p>
  
  <pre><code>import java.util.Date;
  import mypackage.Date as MyDate;
  //...
  javaDate = new Date();
  myDate = new MyDate();
  </code></pre>
  
  <p>Even more, what need to get this kind of syntax:</p>
  
  <pre><code>import java.util.Date;
  import path.to.mypackage as MP;
  //...
  javaDate2 = new Date();
  myDate2 = new MP.Date();
  </code></pre>
  
  <p>And what trouble it will cause for existing codes?</p>