Address a Package name by a shorter name

2019-09-07 13:49发布

问题:

I have arranged my .java files in a folder-subfolder-* structure. My initial package name is (e.g)

com.company.app

Therefore the .java files in a would have a namespace / package of

com.company.app.folder1.folder2

And to access any of the classes from the com.company.app I have to prefix the class name with the package name.

com.company.app.Game

I was wondering if there is a way to set an alias or a pointer to a package(name) and then be able to just use the pointer ?

like so

app.Game 

Is this possible ?