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:
import java.util.Date;
import mypackage.Date as MyDate;
//...
javaDate = new Date();
myDate = new MyDate();
Even more, what need to get this kind of syntax:
import java.util.Date;
import path.to.mypackage as MP;
//...
javaDate2 = new Date();
myDate2 = new MP.Date();
And what trouble it will cause for existing codes?
This obviously requires changes to the Java compiler. If you’re really interested in doing something like this, then look at the OpenJDK project, where you will find the source code for Oracle’s Java compiler and runtime environment.
If you want to propose this as a new feature for a future version of Java, then you’d have to go through the Java Community Process.