The import command "pulls from the package" named in the statement.
Take for example the Math class. Officially named java.lang.Math
This tells you the class named Math is in the package named lang...
Type: Posts; User: jps
The import command "pulls from the package" named in the statement.
Take for example the Math class. Officially named java.lang.Math
This tells you the class named Math is in the package named lang...
A package is just a folder in the hierarchy used for organization.
It is not necessary to organize related classes in different packages, you can dump everything into one big pile if you choose to....