I demonstrated in my Packages Part 1 Tutorial that we could access a class from another package using its fully qualified name. However, it would get really old really fast if we had to type in the fully qualified name every time we used a class or its members from another package. The import statement comes to rescue! The import statement must reside after the package statement and before the class declaration. You can use the import statement in a couple of different ways. The structure for the statement looks like this:
(import) (package.ClassName) (;)
(import) (package.*) (;) // wildcard * imports all available classes
In questa pagina del sito puoi guardare il video online Learn Java Programming - Packages: Import Statement Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Daniel Ross 08 agosto 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,888 volte e gli è piaciuto 11 spettatori. Buona visione!