0

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 ?

Prakash Raman
  • 13,319
  • 27
  • 82
  • 132

0 Answers0