Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is there a way to create alias for a class name?

807588May 7 2009 — edited May 7 2009
If I have the following imports, the List in both classes clash so i have to write out the full name. Is there a way to create a shorthand alias?
import java.awt.List;
import java.util.List;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2009
Added on May 7 2009
7 comments
211 views